From 18b8149207f54462a9e11f268af4cfd3a596fdcc Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期一, 13 一月 2025 10:42:06 +0800 Subject: [PATCH] 10263 【越南】【英文】后端支持NPC仿真实玩家战斗和快速战斗(护盾变更通知周围玩家) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py index d3ac587..2dab765 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py @@ -7413,11 +7413,9 @@ #---当前防护值,需存DB---- def GetProDef(curPlayer): return curPlayer.GetExAttr4() def SetProDef(curPlayer, value): - if GameWorld.IsCrossServer(): - curPlayer.SetExAttr4(value, True) # 跨服服务器需要广播周围玩家 - else: - curPlayer.SetExAttr4(value) - + curPlayer.SetExAttr4(value, True) + return + #---最大防护值---- def GetMaxProDef(curPlayer): return curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_AttrMaxProDef) def SetMaxProDef(curPlayer, value): -- Gitblit v1.8.0