From f3ecce41f1e3dc1571613ac71f60d09f49a8bd13 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 07 十二月 2023 14:58:32 +0800
Subject: [PATCH] 10019 【砍树】回合战斗(更新玩家地图缓存错误问题;限制不能与自己PK)

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

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py
index 9226dfb..7f2d67d 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py
@@ -69,7 +69,7 @@
 
 def DoTrunFightVSPlayer(curPlayer, tagPlayerID, callData, PropDict):
     mapID, funcLineID = callData
-    if PropDict:
+    if PropDict and curPlayer.GetPlayerID() != tagPlayerID:
         tick = GameWorld.GetGameWorld().GetTick()
         DoTrunFight(curPlayer, mapID, funcLineID, tagPlayerID, tick)
     SyncTurnFightState(curPlayer, mapID, funcLineID, tagPlayerID, FightState_Over)

--
Gitblit v1.8.0