From fb30a62bca5aa44399c1e8e9aa3dc2e5c250bbf2 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 18 十月 2024 18:00:07 +0800
Subject: [PATCH] 10263 【越南】【英文】后端支持NPC仿真实玩家战斗和快速战斗

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/MirrorAttack.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/MirrorAttack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/MirrorAttack.py
index bd53a0c..e2b4736 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/MirrorAttack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/MirrorAttack.py
@@ -446,6 +446,9 @@
     playerID = 0
     if curPlayer:
         playerID = curPlayer.GetPlayerID()
+        if curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_MirrorBattleID):
+            GameWorld.DebugLog("镜像战斗场景中,无法请求!", playerID)
+            return
         curTime = int(time.time())
         # 请求cd验证
         requestTime = curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_MirrorBattleTime)
@@ -476,7 +479,7 @@
                    "requestTime":requestTime, "requestID":requestID, "requestMapID":requestMapID, "playerID":playerID})
     GameWorld.GetPlayerManager().GameServer_QueryPlayerResult(0, 0, 0, "ReuestPlayerPackData", sendMsg, len(sendMsg))
     GameWorld.DebugLog("请求创建镜像战斗: %s" % sendMsg, playerID)
-    return
+    return True
 
 def OnMirrorBattleInit(msgInfo, packDataDict, curPlayer=None):
     ''' 镜像战斗初始化 

--
Gitblit v1.8.0