From 94c9b0759bfa49e66bfce3f790c40f15d362ba1a Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 10 一月 2019 15:17:26 +0800
Subject: [PATCH] 5722 【后端】【1.5】跨服BOSS开发(支持跨服复活)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
index 0556fbc..c5312cf 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
@@ -1583,6 +1583,12 @@
         NotifyCode(curPlayer, "CrossMatching18")
         return
     
+    if curPlayer.GetHP() <= 0:
+        return
+    
+    if PlayerCrossRealmPK.GetIsCrossPKMatching(curPlayer):
+        return
+    
     GY_Query_CrossRealmReg.RegisterEnterCrossServer(curPlayer, mapID)
     return
 
@@ -5713,7 +5719,10 @@
 
 ## 跨服状态: 0-非跨服状态,1-跨服状态
 def GetCrossRealmState(curPlayer): return curPlayer.GetExAttr5()
-def SetCrossRealmState(curPlayer, value): curPlayer.SetExAttr5(value, False, True)
+def SetCrossRealmState(curPlayer, value):
+    NomalDictSetProperty(curPlayer, ChConfig.Def_PlayerKey_CrossMapID, value)
+    curPlayer.SetExAttr5(1 if value else 0, False, True)
+    return
 
 ## 铜钱点, 支持铜钱超20亿
 def GetSilver(curPlayer): return curPlayer.GetExAttr6() * ChConfig.Def_PerPointValue + curPlayer.GetSilver()

--
Gitblit v1.8.0