From 45fb7dbdb58d53e5d36764324081f9bd6bdcab58 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 21 六月 2024 20:09:42 +0800
Subject: [PATCH] 10185 【越南】【港台】【主干】BOSS凭证修改(有跨服凭证榜活动时验证跨服参与时间点;否则验证本服活动的参与时间点;)

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

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActBossTrial.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActBossTrial.py
index dd2e3b5..1a49c82 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActBossTrial.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActBossTrial.py
@@ -189,10 +189,17 @@
     if not actInfo.get(ShareDefine.ActKey_State):
         GameWorld.DebugLog("Boss历练非活动中: actNum=%s" % actNum, playerID)
         return
-    if not actInfo.get(ShareDefine.ActKey_StateJoin):
-        GameWorld.Log("Boss历练非参与活动中: actNum=%s" % actNum, playerID)
-        return
     
+    crossActInfo = CrossRealmPlayer.GetPlayerCrossActInfo(curPlayer, ShareDefine.CrossActName_BossTrial)
+    if crossActInfo.get(ShareDefine.ActKey_State, 0):
+        if not crossActInfo.get(ShareDefine.ActKey_StateJoin):
+            GameWorld.Log("跨服Boss历练非参与活动中: actNum=%s" % actNum, playerID)
+            return
+    else:
+        if not actInfo.get(ShareDefine.ActKey_StateJoin):
+            GameWorld.Log("Boss历练非参与活动中: actNum=%s" % actNum, playerID)
+            return
+        
     itemID = IpyGameDataPY.GetFuncCfg("BossTrial", 1)
     itemPack = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptItem)
     lackItemDict, delInfoDict = ItemCommon.GetCostItemIndexList({itemID:submitCount}, itemPack)

--
Gitblit v1.8.0