xdh
2019-01-23 29df5dafc63890a23a9a24d4b461fa3c707ccfcc
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4065.py
@@ -14,15 +14,23 @@
import ChConfig
import GameWorld
import GameObj
import IPY_GameWorld
def CheckCanHappen(attacker, defender, effect, curSkill):
    if not defender:
        return False
    if defender.GetGameObjType() != IPY_GameWorld.gotPlayer:
        return False
    if attacker.GetGameObjType() != IPY_GameWorld.gotPlayer:
        return False
    attrLV = attacker.NomalDictGetProperty(ChConfig.Def_PDict_GodWeaponLV % effect.GetEffectValue(0))
    tagAttrLV = defender.NomalDictGetProperty(ChConfig.Def_PDict_GodWeaponLV % effect.GetEffectValue(0))
    
    if tagAttrLV >= attrLV:
        return False
    return True