From 3a62560ad1f29d87134e19675a8b1a8dba57ecdd Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期五, 02 十一月 2018 22:08:17 +0800 Subject: [PATCH] 2683 子 天赋技能和新增双职业各两个技能 / 【后端】天赋技能 ----- 枪的攻和防 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_4508.py | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_4508.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_4508.py index ab20270..ac475bc 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_4508.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_4508.py @@ -16,22 +16,22 @@ import SkillCommon import BuffSkill -def CheckCanHappen(attacker, defender, passiveEffect, skillID): +def CheckCanHappen(attacker, defender, passiveEffect, skillID, **skillkwargs): curSkill = GameWorld.GetGameData().GetSkillBySkillID(skillID) if not curSkill: return False - + buffType = SkillCommon.GetBuffType(curSkill) buffTuple = SkillCommon.GetBuffManagerByBuffType(attacker, buffType) #通过类型获取目标的buff管理器为空,则跳出 if buffTuple == (): return False - + buffManager = buffTuple[0] - buff = buffManager.FindBuff(skillID) + buff = buffManager.FindBuff(curSkill.GetSkillTypeID()) if not buff: return False - + if buff.GetLayer() <= 0: return False -- Gitblit v1.8.0