From 3a62560ad1f29d87134e19675a8b1a8dba57ecdd Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期五, 02 十一月 2018 22:08:17 +0800 Subject: [PATCH] 2683 子 天赋技能和新增双职业各两个技能 / 【后端】天赋技能 ----- 枪的攻和防 --- 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