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 +-
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerViewCacheTube.py | 5 +++--
2 files changed, 4 insertions(+), 3 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)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerViewCacheTube.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerViewCacheTube.py
index 34ebc36..eaa2a5f 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerViewCacheTube.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerViewCacheTube.py
@@ -276,13 +276,14 @@
#魂石、丹药使用个数
curPlayerPlusDict["Fruit"] = PlayerAttrFruit.GetAttrFruitEatCntDict(curPlayer)
- PyGameData.g_playerViewCache[curPlayer.GePlayerID()] = {"PropData":curPlayerPropDict, "PlusData":curPlayerPlusDict}
+ playerID = curPlayer.GetPlayerID()
+ PyGameData.g_playerViewCache[playerID] = {"PropData":curPlayerPropDict, "PlusData":curPlayerPlusDict}
return
def GetPlayerPropPlusCache(curPlayer):
#玩家属性缓存
UpdPlayerPropPlusCache(curPlayer)
- return GetPlayerPropPlusCacheByID(curPlayer.GePlayerID())
+ return GetPlayerPropPlusCacheByID(curPlayer.GetPlayerID())
def GetPlayerPropPlusCacheByID(playerID):
#玩家属性缓存
--
Gitblit v1.8.0