From cebb36fd99039250f3671899ee9c80b2d1428b96 Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期四, 15 十一月 2018 13:54:45 +0800 Subject: [PATCH] 4710 【1.3】【后端】魔族法宝副本修改(属性刷新) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py | 20 +++++++++++++++----- 1 files changed, 15 insertions(+), 5 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py index 0e6f4cb..775ab34 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py @@ -166,6 +166,10 @@ if attacker.GetGameObjType() != IPY_GameWorld.gotPlayer: return False + if not curSkill: + # 玩家普通也是技能,正常是不会走到这边 + return False + useSkillData = attacker.GetUseSkill() if useSkillData and curSkill.GetSkillTypeID() != useSkillData.GetSkillTypeID(): # 默认群攻附加触发buff的对象与攻击对象一致 @@ -2583,7 +2587,7 @@ buffState.DeleteEffectByIndex(i) -# 通过技能ID列表删除buff对应的效果ID +# 通过技能ID列表删除buff对应的效果ID, 死亡调用 def ClearBuffEffectBySkillIDList(curObj, buffState, skillIDList): effectIndexList = [] @@ -2593,11 +2597,17 @@ if curEffectID == 0: continue - # [技能ID, 来源对象ID,对象类型] - if [buffState.GetEffectFromSkillID(i), - buffState.GetEffectOwnerID(i), - buffState.GetEffectOwnerType(i)] not in skillIDList: + #======================================================================= + # # [技能ID, 来源对象ID,对象类型] + # if [buffState.GetEffectFromSkillID(i), + # buffState.GetEffectOwnerID(i), + # buffState.GetEffectOwnerType(i)] not in skillIDList: + # continue + #======================================================================= + # 改成只判断技能ID + if buffState.GetEffectFromSkillID(i) not in skillIDList: continue + effectIndexList.append(i) # 倒序删除 -- Gitblit v1.8.0