From ed55412a729dc711b908bef765e2465866b2c4e7 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 17 一月 2019 23:07:52 +0800
Subject: [PATCH] 5722 【后端】【1.5】跨服BOSS开发(同步影响玩家战力的属性、字典到跨服服务器,暂定延迟5秒同步)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/ExitFB.py |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/ExitFB.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/ExitFB.py
index 5f2ec53..3789b02 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/ExitFB.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/ExitFB.py
@@ -24,6 +24,16 @@
 #  @return None
 #  @remarks 函数详细说明.
 def OnExec(curPlayer, paramList):
-    ChPlayer.__Func_ExitFB(curPlayer, GameWorld.GetGameWorld().GetTick())
+    tick = GameWorld.GetGameWorld().GetTick()
+    isAll = paramList[0] if paramList else 0
+    if isAll:
+        copyMapPlayerManager = GameWorld.GetMapCopyPlayerManager()
+        for i in xrange(copyMapPlayerManager.GetPlayerCount()):
+            player = copyMapPlayerManager.GetPlayerByIndex(i)
+            if player == None or player.IsEmpty():
+                continue
+            ChPlayer.__Func_ExitFB(player, tick)
+        return
+    ChPlayer.__Func_ExitFB(curPlayer, tick)
     return
 

--
Gitblit v1.8.0