From 46cb09f4e24e4c1019cb7150338c5adce1cc64e7 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期六, 18 一月 2025 18:44:34 +0800
Subject: [PATCH] 10263 【越南】【英文】【BT】【砍树】后端支持NPC仿真实玩家战斗和快速战斗(本服竞技场支持掉线重登后结算战斗结果)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/MirrorAttack.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 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 b4547db..acd08bd 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/MirrorAttack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/MirrorAttack.py
@@ -259,6 +259,12 @@
         curPlayer.SetAttackTick(tick)
         ChPlayer.__Sync_ClientBuff(curPlayer)
         
+    # 所属玩家
+    curPlayer = playerMgr.FindPlayerByID(ownerPlayerID)
+    if curPlayer:
+        curPlayer.SetDict(ChConfig.Def_PlayerKey_MirrorBattleID, 0)
+        curPlayer.SetDict(ChConfig.Def_PlayerKey_MirrorBattleTime, 0)
+        
     # 如果是真实地图战斗的,关闭副本
     if battle.isChangeMap:
         GameWorldProcess.CloseFB(GameWorld.GetGameWorld().GetTick())

--
Gitblit v1.8.0