From d77abb724151826fbfcb23f6e1bc5d232f155535 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 21 十一月 2018 19:16:52 +0800 Subject: [PATCH] 4926 【后端】【1.2】【1.3】BOSS归属特殊规则 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/ChNPC.py | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/ChNPC.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/ChNPC.py index 7a50f53..4fcdbd0 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/ChNPC.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/ChNPC.py @@ -134,7 +134,13 @@ callFunc(atkObj, curNPC, skill, tick) PlayerActivity.OnAttackNPCActivity(atkObj, curNPC) - + +def OnCheckCanDie(atkObj, curNPC, skill, tick): + callFunc = GameWorld.GetExecFunc(NPCAI, "AIType_%d.%s"%(curNPC.GetAIType(), "OnCheckCanDie")) + if callFunc == None: + return True + return callFunc(atkObj, curNPC, skill, tick) + #--------------------------------------------------------------------- ## 初始化NPC # @param tick 当前时间 -- Gitblit v1.8.0