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/Player/PlayerViewCacheTube.py | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) 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