From 739b1bfaa32b5af433e00208e63727136c0f0d79 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Sat, 3 Sep 2016 21:54:59 -0400 Subject: [PATCH] Fix target buffs showing PC songs --- zone/spells.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/zone/spells.cpp b/zone/spells.cpp index 2e99e97a9..c818c8e90 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -5458,8 +5458,10 @@ void Mob::SendBuffsToClient(Client *c) EQApplicationPacket *Mob::MakeBuffsPacket(bool for_target) { uint32 count = 0; - uint32 buff_count = GetMaxTotalSlots(); - for(unsigned int i = 0; i < buff_count; ++i) + // for self we want all buffs, for target, we want to skip song window buffs + // since NPCs and pets don't have a song window, we still see it for them :P + uint32 buff_count = for_target ? GetMaxBuffSlots() : GetMaxTotalSlots(); + for(int i = 0; i < buff_count; ++i) { if(buffs[i].spellid != SPELL_UNKNOWN) { @@ -5491,7 +5493,7 @@ EQApplicationPacket *Mob::MakeBuffsPacket(bool for_target) buff->type = 0; uint32 index = 0; - for(unsigned int i = 0; i < buff_count; ++i) + for(int i = 0; i < buff_count; ++i) { if(buffs[i].spellid != SPELL_UNKNOWN) {