From 007d63b605f621933e5e6955ce73e74d86b1410a Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期四, 05 十一月 2020 18:39:59 +0800 Subject: [PATCH] 4853 【主干】【长尾】【BT】宗门试炼召唤未刷怪bug(未招完无法刷怪的bug) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py index 162dabd..53f44f8 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py @@ -49,7 +49,7 @@ #GameWorld.DebugLog('聚魂副本对怪物上buff curSkill=%s,buffOwner=%s'%(curSkill.GetSkillTypeID(),buffOwner.GetID())) if curObj.GetGameObjType() == IPY_GameWorld.gotNPC and curObj.GetIsBoss() not in ChConfig.Def_SkillAttack_NPCIsBoss \ - and SkillCommon.GetSkillBattleType(curSkill) == ChConfig.Def_BattleRelationType_CommNoBoss: + and SkillCommon.GetSkillBattleType(curSkill) == ChConfig.Def_BattleRelationType_CommNoBoss and SkillShell.IsNPCSkillResist(curObj): # 释放后 对指定BOSS无效的技能 return True @@ -413,7 +413,7 @@ # 此处不能传技能curSkill 屏蔽被动触发被动限制 # 暂且特殊处理控制类buff才触发 if SkillCommon.GetBuffType(curSkill) == IPY_GameWorld.bfActionBuff: - PassiveBuffEffMng.OnPassiveBuffTrigger(curObj, buffOwner, None, ChConfig.TriggerType_AddBuffOver, tick) + PassiveBuffEffMng.GetValueByPassiveBuffTriggerType(curObj, buffOwner, curSkill, ChConfig.TriggerType_AddBuffOver, False) #是否是持续性技能 isLstSkill = curSkill.GetSkillType() in ChConfig.Def_LstBuff_List @@ -1002,7 +1002,10 @@ def PYSync_RefreshBuff(gameObj, curBuff, buffType, notifyAll=True, owner = None): sendPack = ChNetSendPack.tagObjAddBuff() - + if not curBuff: + return + if not curBuff.GetSkill(): + return sendPack.ObjType = gameObj.GetGameObjType() sendPack.ObjID = gameObj.GetID(); sendPack.SkillID = curBuff.GetSkill().GetSkillID(); -- Gitblit v1.8.0