From 8b82df47bf4ea3100410c1a88aeca505081d3a3a Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 06 六月 2024 11:18:02 +0800
Subject: [PATCH] 10130 【后端】福地争夺资源功能(修复驱赶获取目标玩家信息报错)

---
 ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerTurnFight.py                 |    6 +++---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py |    1 -
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerTurnFight.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerTurnFight.py
index e19922f..2eee935 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerTurnFight.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerTurnFight.py
@@ -64,10 +64,10 @@
     return
 
 def __OnGetTagPlayerInfo(curPlayer, dataMsg):
-    _, _, tagPlayerID, _ = dataMsg
-    if tagPlayerID < 10000:
+    mapID, funcLineID, tagType, tagID, valueList = dataMsg
+    if tagID < 10000:
         return
-    cacheDict = PlayerViewCache.GetCachePropDataDict(PlayerViewCache.FindViewCache(tagPlayerID))
+    cacheDict = PlayerViewCache.GetCachePropDataDict(PlayerViewCache.FindViewCache(tagID))
     tagPlayerInfo = {
                      "Name":cacheDict.get("Name", ""),
                      "Job":cacheDict.get("Job", 0),
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 662489b..7f392ec 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py
@@ -164,7 +164,6 @@
     GameWorld.DebugLog("    战斗结果: isWin=%s,curFightPower=%s,tagFightPower=%s" % (isWin, curFightPower, tagFightPower), playerID)
     
     factionTotalHurtDict = {}
-    SyncTurnFightState(curPlayer, mapID, funcLineID, tagType, tagID, FightState_FightEnd, turnNum, turnMax)
     
     playbackID = 0 # 战斗回放ID,可根据该ID查看回放
     

--
Gitblit v1.8.0