10019 【砍树】回合战斗(更新玩家地图缓存错误问题;限制不能与自己PK)
2个文件已修改
7 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/TurnAttack.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerViewCacheTube.py 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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)
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):
    #玩家属性缓存