From 2df5f3f55aa860333da7d4b5ddc8bf71411fa3b0 Mon Sep 17 00:00:00 2001 From: Fryguy Date: Sun, 26 May 2024 06:59:22 -0400 Subject: [PATCH] [Bug Fix] When refreshing buffs, attempt to use the same buffslot if the buff still exists. (#4338) --- zone/spells.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zone/spells.cpp b/zone/spells.cpp index 0895709b2..328542470 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -3672,6 +3672,10 @@ int Mob::AddBuff(Mob *caster, uint16 spell_id, int duration, int32 level_overrid ); // If this is the first buff it would override, use its slot + if (!will_overwrite && !IsDisciplineBuff(spell_id)) { + emptyslot = buffslot; + } + will_overwrite = true; overwrite_slots.push_back(buffslot); } else if (ret == 2) {