From ae8371301b81bfae8de95d2ecbe52a50df8c7f06 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 06 十二月 2023 10:04:12 +0800 Subject: [PATCH] 9811 【BT9】【后端】逐鹿万界 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AICommon.py | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AICommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AICommon.py index 23c9aa9..c71773f 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AICommon.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AICommon.py @@ -223,7 +223,7 @@ # @param curNPC 当前NPC # @return None # @remarks 清空NPC伤血列表, 并清空玩家Loading进度条状态 -def ClearPlayerPreparing(curNPC, srcPlayer=None): +def ClearPlayerPreparing(curNPC, srcPlayer=None, notifyKey=""): curNPC_HurtList = curNPC.GetPlayerHurtList() for i in range(curNPC_HurtList.GetHurtCount()): hurtValue = curNPC_HurtList.GetHurtAt(i) @@ -254,7 +254,9 @@ #设置空闲状态 PlayerControl.ChangePlayerAction(curPlayer, IPY_GameWorld.paNull) - + if notifyKey: + PlayerControl.NotifyCode(curPlayer, notifyKey, [curNPC.GetNPCID()]) + #清空这个NPC的伤血列表 curNPC_HurtList.Clear() -- Gitblit v1.8.0