5071 【主干】【gt_1.101.1】【BT3】【bt3_1.101.1】外网出现boss无法死亡(修复boss伤血缓存对象异常导致坐标错误引起的无法死亡)
1个文件已修改
8 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py
@@ -1051,6 +1051,14 @@
        hurtList = PyGameData.g_npcHurtDict.pop(key)
        hurtList.OnDelete()
        return
    curNPC = defendHurtList.curNPC
    npcID = curNPC.GetNPCID()
    if defendHurtList.npcID != npcID:
        repNPC = GameWorld.FindNPCByID(defendHurtList.objID)
        if repNPC:
            defendHurtList.curNPC = repNPC
            GameWorld.Log("Boss伤血管理curNPC异常,修复: npcID=%s,errNPCID=%s,repNPCID=%s" % (defendHurtList.npcID, npcID, defendHurtList.npcID))
    return defendHurtList
def OnNPCHurtPlayerEnterTeam(playerID, playerName, befTeamID, newTeam, tick):