diff --git a/zone/mob.cpp b/zone/mob.cpp index 1a4a20ba4..9eb0f0f68 100644 --- a/zone/mob.cpp +++ b/zone/mob.cpp @@ -3460,10 +3460,10 @@ void Mob::ShowBuffs(Client* c) { ); for (auto i = 0; i < GetMaxTotalSlots(); i++) { - const auto spell_id = buffs[i].spellid; - const auto buff_duration_formula = spells[spell_id].buff_duration_formula; + const auto spell_id = buffs[i].spellid; if (IsValidSpell(spell_id)) { - const auto is_permanent = ( + const auto buff_duration_formula = spells[spell_id].buff_duration_formula; + const auto is_permanent = ( buff_duration_formula == DF_Aura || buff_duration_formula == DF_Permanent );