From dbcfd3f16072fb70909f6f6e209e437af97c98a6 Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期一, 03 六月 2019 11:40:20 +0800 Subject: [PATCH] 6969 【2.0】【后端】缥缈仙域奇遇(奇遇可能随不出问题) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4066.py | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4066.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4066.py index 5656afc..1dc7c4d 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4066.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4066.py @@ -14,9 +14,17 @@ 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)) -- Gitblit v1.8.0