From 3caca95a705f26b0d40a8ae88093c8e2c8ca4f6f Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期六, 19 一月 2019 11:55:46 +0800
Subject: [PATCH] 2908 【1.5.0】【1.5.100】组队进入跨服boss打boss异常情况

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py   |    3 +++
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTeam.py |    9 +++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
index a87532f..3d85fb2 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
@@ -410,6 +410,9 @@
         PetControl.DoLogic_PetInfo_OnLogin(curPlayer, tick)
         
         PlayerFamily.FamilyPlayerOnLoginCross(curPlayer)
+        
+        PlayerTeam.OnPlayerLoginCrossServer(curPlayer)
+            
         #通知运行成功
         curPlayer.BalanceServer_PlayerLoginInitOK()
         return
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTeam.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTeam.py
index 50ce377..ccd03a4 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTeam.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTeam.py
@@ -68,6 +68,15 @@
     #玩家刚登录, 什么也不做, 等待GameServer刷新自己
     return
 
+def OnPlayerLoginCrossServer(curPlayer):
+    ## 登录跨服服务器处理
+    
+    if curPlayer.GetTeamID():
+        curPlayer.SetTeamID(0)
+        GameWorld.DebugLog("登录跨服服务器重置队伍ID!")
+        
+    return
+
 ## 游戏服务器刷新队伍(封包参数)
 #  @param index 玩家索引
 #  @param tick 当前时间 

--
Gitblit v1.8.0