From 7c39ed3b5f3b3335d064d356243df31d76e18bff Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期三, 10 四月 2019 13:46:04 +0800
Subject: [PATCH] 6478 【后端】【2.0】仙盟boss进入界面修改

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_FBLinePlayerCnt.py |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_FBLinePlayerCnt.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_FBLinePlayerCnt.py
index 27232bd..1e0cda1 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_FBLinePlayerCnt.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_FBLinePlayerCnt.py
@@ -21,6 +21,7 @@
 #导入
 import GameLogic_ZhuXianBoss
 import GameLogic_HorsePetBoss
+import GameLogic_AllFamilyBoss
 import GameWorld
 import IPY_GameWorld
 import ChConfig
@@ -88,6 +89,18 @@
             playerCnt = playerManager.GetPlayerCount()
             hpPer = GameLogic_HorsePetBoss.GetBossRemainHPPer(fblineID, tick)
             fbLinePlayerCntDict[fblineID] = [playerCnt, str(hpPer)]
+    elif tagMapID == ChConfig.Def_FBMapID_AllFamilyBoss:
+        for index in xrange(gameWorldManager.GetGameWorldCount()):
+            gameWorld = IPY_GameWorld.IPY_GameWorld(index)
+            playerManager = gameWorld.GetMapCopyPlayerManagerByFbIndex(index)
+            fblineID = gameWorld.GetPropertyID() - 1
+            if fblineID < 0:
+                continue
+            if not isAllLine and tagFBLineID != fblineID:
+                continue
+            playerCnt = playerManager.GetPlayerCount()
+            hpPer = GameLogic_AllFamilyBoss.GetBossRemainHPPer(tick)
+            fbLinePlayerCntDict[fblineID] = [playerCnt, str(hpPer)]
     else:
         return
     return [tagMapID, fbLinePlayerCntDict]

--
Gitblit v1.8.0