hxp
2023-04-25 ae8371301b81bfae8de95d2ecbe52a50df8c7f06
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()