From 1a5b56fd1738f4b01831a12587e1e34ee5def2ff Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期一, 13 十一月 2023 13:32:15 +0800 Subject: [PATCH] 9912 [BT0.1]BOSS凭证(天玄丹buff支持多层,可批量使用) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py index 80bac64..7bcb02b 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py @@ -1275,10 +1275,9 @@ elif ChConfig.IsGameBoss(npcData): GameWorld.ErrLog("Boss没有掉落物品,NPCID=%s" % (npcID), dropPlayer.GetPlayerID()) - if tianxuanState: - GameWorld.DebugLog(" 去除天玄丹buff", playerID) - tick = GameWorld.GetGameWorld().GetTick() - BuffSkill.DelBuffBySkillID(dropPlayer, ChConfig.Def_SkillID_TianxuanBuff, tick) + if tianxuanBuff and tianxuanState: + GameWorld.DebugLog(" 去除天玄丹buff: Layer=%s" % tianxuanBuff.GetLayer(), playerID) + BuffSkill.SetBuffLayer(dropPlayer, tianxuanBuff, max(tianxuanBuff.GetLayer() - 1, 0), True, ChConfig.Def_SkillID_TianxuanBuff, isSync=True) return dropIDList, auctionIDList, dropMoneyCnt, moneyValue -- Gitblit v1.8.0