5071 【主干】【gt_1.101.1】【BT3】【bt3_1.101.1】外网出现boss无法死亡(修复boss伤血缓存对象异常导致坐标错误引起的无法死亡)
| | |
| | | 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):
|