From f0f101d1d778e26a2e3ecd368c90c8f52a7ea011 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 13 六月 2019 11:11:44 +0800
Subject: [PATCH] 7220 【后端】【2.0】灵器开发1.0版(删除绝版属性,原绝版属性转移到灵器属性)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossRealmPK.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossRealmPK.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossRealmPK.py
index 5c22c1b..faba8bf 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossRealmPK.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossRealmPK.py
@@ -394,6 +394,9 @@
     prepareTime = fbTimeList[Def_Time_MapPrepare] * 1000
     helpDict["prepareTime"] = prepareTime
     
+    roundNum = gameFB.GetGameFBDictByKey(FB_RoundNum)
+    winnerID = gameFB.GetGameFBDictByKey(FB_RoundWinPlayerID % roundNum)
+    
     nextRoundNum = gameFB.GetGameFBDictByKey(FB_RoundNum) + 1
     gameFB.SetGameFBDict(FB_RoundNum, nextRoundNum)
     
@@ -410,6 +413,9 @@
             GameWorld.DebugLog("复活玩家...", player.GetPlayerID())
             ChPlayer.PlayerRebornByType(player, ChConfig.rebornType_System, tick, isAddSuperBuff=False)
             __ResetPlayerState(gameFB, player, playerID)
+        elif winnerID and playerID != winnerID:
+            GameWorld.DebugLog("平局,输的玩家回满血!", playerID)
+            __ResetPlayerState(gameFB, player, playerID)         
         else:
             __ResetPlayerState(gameFB, player, playerID, False)
                 

--
Gitblit v1.8.0