From 2338f83c84cbd1bd27ff4c2c0ca70151e34c05e4 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期四, 27 二月 2020 18:43:08 +0800 Subject: [PATCH] 8384 【主干】【后端】优化控制buff类对boss的影响 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 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 6309be3..f143363 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py @@ -579,6 +579,18 @@ return True +def IsNPCSkillResist(curNPC): + ## NPC是否技能抵抗,对应技能表中伤害类型HurtType为3的技能,即对boss无效的技能 + + if curNPC.GetCurAction() == IPY_GameWorld.laNPCSkillWarning: + #GameWorld.DebugLog("预警状态下默认抵抗") + return True + + bossIpyData = IpyGameDataPY.GetIpyGameDataNotLog("BOSSInfo", curNPC.GetNPCID()) + if bossIpyData and bossIpyData.GetSkillResist(): + return True + + return False ##是否召唤兽对主人使用技能 # @param curNPC NPC实例 -- Gitblit v1.8.0