#!/usr/bin/python # -*- coding: GBK -*- # ##@package # # @todo: buffÖй¥»÷´¦ÓÚxx״̬Ŀ±ê´¥·¢¼¼ÄÜ # # @author: Alee # @date 2019-5-7 ÏÂÎç09:17:25 # @version 1.0 # # @note: # #--------------------------------------------------------------------- import GameWorld import GameObj def CheckCanHappen(attacker, defender, passiveEffect, skillID, **skillkwargs): if passiveEffect.GetEffectValue(0): if not GameObj.GetPyPlayerState(defender, passiveEffect.GetEffectValue(0)): #GameWorld.DebugLog("״̬´¥·¢----%s"%effect.GetEffectValue(1)) return False return True def GetSkillData(passiveEffect): skillID = passiveEffect.GetEffectValue(1) return GameWorld.GetGameData().GetSkillBySkillID(skillID)