From 4cd763f5cbf13a7e82dfdeb5e8df0a27c707a679 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 14 一月 2020 18:38:01 +0800 Subject: [PATCH] 4631 【主干】守卫人皇异常(修复活动时间结束后才完成结算副本的仙盟在下次活动开始前登录的玩家无法进入bug) --- ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamilySWRH.py | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamilySWRH.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamilySWRH.py index 8b7e907..ff0534f 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamilySWRH.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamilySWRH.py @@ -19,6 +19,7 @@ import NetPackCommon import ShareDefine import ChConfig +import copy #--------------------------------------------------------------------- def OnLogin(curPlayer): @@ -30,7 +31,11 @@ def SWRHFBOver(familyID): if familyID not in PyGameData.g_swrhJoinRecord: PyGameData.g_swrhJoinRecord.append(familyID) - + + NotifySWRHFamily(familyID) + return + +def NotifySWRHFamily(familyID): #通知 family = GameWorld.GetFamilyManager().FindFamily(familyID) if not family: @@ -51,10 +56,16 @@ def OnSWRHStateChange(dictName, isOpen): + + copyJoinRecord = copy.deepcopy(PyGameData.g_swrhJoinRecord) PyGameData.g_swrhJoinRecord = [] - + if isOpen: + for familyID in copyJoinRecord: + NotifySWRHFamily(familyID) + return #是否在守卫人皇活动中 -def IsInFamilySWRH():return GameWorld.GetGameWorld().GetDictByKey(ShareDefine.Def_Notify_WorldKey_FBFuncState % ChConfig.Def_FBMapID_FamilyInvade) \ No newline at end of file +def IsInFamilySWRH():return GameWorld.GetGameWorld().GetDictByKey(ShareDefine.Def_Notify_WorldKey_FBFuncState % ChConfig.Def_FBMapID_FamilyInvade) + -- Gitblit v1.8.0