From d7203ff6c31fdb3518b98f773046571eaf45f354 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 21 一月 2025 14:15:19 +0800
Subject: [PATCH] 10263 【越南】【英文】【BT】【砍树】后端支持NPC仿真实玩家战斗和快速战斗(快速战斗后退出副本优化buff通知)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
index 09e8ff8..6df29d6 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
@@ -1257,12 +1257,23 @@
#@return 返回值无意义
#@remarks 通知玩家buff信息
def __Sync_ClientBuff(curPlayer):
+ __SyncClearBuff(curPlayer)
curPlayer.GetBuffState().Sync_Buff()
curPlayer.GetDeBuffState().Sync_Buff()
curPlayer.GetAura().Sync_Buff()
curPlayer.GetIncBuff().Sync_Buff()
curPlayer.GetProcessBuffState().Sync_Buff()
curPlayer.GetProcessDeBuffState().Sync_Buff()
+ return
+
+def __SyncClearBuff(curPlayer):
+ clientPack = ChNetSendPack.tagClearObjBuff()
+ clientPack.Clear()
+ clientPack.ObjType = curPlayer.GetGameObjType()
+ clientPack.ObjID = curPlayer.GetID()
+ clientPack.BuffType = 99 # 99代表清所有
+ NetPackCommon.SendFakePack(curPlayer, clientPack)
+ return
#---------------------------------------------------------------------
##上线时通知离线时间(离线挂机功能)
--
Gitblit v1.8.0