From 922b9a9139f9c86cc48b14668f05615a6ea5fd21 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 19 三月 2019 16:02:13 +0800 Subject: [PATCH] 6359 【后端】【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