From ced3a2fac8faf91241b1134604d9515dc40540f5 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 21 一月 2025 12:12:15 +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 40b3f25..eb41453 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
@@ -1265,12 +1265,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