From 367fd9c77f82b2c7960dc9281c270e550d3ecbb0 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 30 一月 2026 15:23:37 +0800
Subject: [PATCH] 438 【方案】方案预设-服务端(修复当前流派子方案切换时如切武将方案,定军阁进攻武将不会刷新的bug;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPreset.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPreset.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPreset.py
index d1fab9c..a800613 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPreset.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPreset.py
@@ -216,7 +216,8 @@
PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_PresetFuncID % (batPresetID, funcPresetType), toPresetID)
# 刷属性
- PlayerOnline.GetOnlinePlayer(curPlayer).RefreshBatPreset(batPresetID)
+ #PlayerViewCache.ResetCacheUpdTickByPresetSwitch(curPlayer, batPresetID)
+ PlayerOnline.GetOnlinePlayer(curPlayer).RefreshByFuncPreset(funcPresetType, toPresetID)
Sync_FuncPresetSwitchInfo(curPlayer, batPresetID, funcPresetType)
return
@@ -249,6 +250,7 @@
GameWorld.DebugLog("全局战斗预设方案切换: batPresetType=%s,batPresetID=%s" % (batPresetType, batPresetID))
# 刷属性
+ #PlayerViewCache.ResetCacheUpdTickByPresetSwitch(curPlayer, batPresetID)
PlayerOnline.GetOnlinePlayer(curPlayer).RefreshBatPreset(batPresetID)
Sync_BatPresetSwitchInfo(curPlayer, batPresetType)
--
Gitblit v1.8.0