From e8d3e73b9a40493afcc000b2844791bab2ff1629 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期六, 11 一月 2020 20:36:21 +0800
Subject: [PATCH] 8346 【恺英】【后端】协助系统(修复封魔坛在同一boss场景中无法直接协助的bug,在不同封魔坛boss无法直接协助)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py
index 9482636..3eeba61 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py
@@ -779,6 +779,7 @@
                     overDict = {FBCommon.Over_isAssist:1, FBCommon.Over_money:FBCommon.GetJsonMoneyList({assistMoneyType:addAssistMoney}),
                                 FBCommon.Over_itemInfo:[]}
                     FBCommon.NotifyFBOver(assistPlayer, mapID, PlayerControl.GetFBFuncLineID(assistPlayer), 1, overDict)
+                    assistPlayer.Sync_TimeTick(IPY_GameWorld.tttLeaveMap, 0, 10000, True)
                     
                 if noAssistPlayer:
                     todayGiftCount = assistPlayer.NomalDictGetProperty(ChConfig.Def_PDict_GetThanksGiftCount % liheItemID)
@@ -924,11 +925,19 @@
     defendHurtList.Clear()
     return
 
+def GetBossLineID(npcID):
+    sealDemonIpyData = IpyGameDataPY.GetIpyGameDataNotLog("SealDemon", npcID)
+    if sealDemonIpyData:
+        lineID = sealDemonIpyData.GetLineID()
+    else:
+        lineID = GameWorld.GetGameWorld().GetLineID()
+    return lineID
+
 def DeletePlayerHurtList(curNPC):
     ## 删除伤血列表
-    lineID = GameWorld.GetGameWorld().GetLineID()
     objID = curNPC.GetID()
     npcID = curNPC.GetNPCID()
+    lineID = GetBossLineID(npcID)
     key = (lineID, objID, npcID)
     if key in PyGameData.g_npcHurtDict:
         hurtList =PyGameData.g_npcHurtDict.pop(key)
@@ -938,9 +947,9 @@
 
 def GetPlayerHurtList(curNPC):
     ## 获取伤血列表,可能为None
-    lineID = GameWorld.GetGameWorld().GetLineID()
     objID = curNPC.GetID()
     npcID = curNPC.GetNPCID()
+    lineID = GetBossLineID(npcID)
     return GetPlayerHurtListEx(lineID, objID, npcID)
 def GetPlayerHurtListEx(lineID, objID, npcID):
     ## 获取伤血列表,可能为None

--
Gitblit v1.8.0