[Bug Fix] When refreshing buffs, attempt to use the same buffslot if the buff still exists. (#4338)

This commit is contained in:
Fryguy 2024-05-26 06:59:22 -04:00 committed by GitHub
parent e803d3e1e1
commit 2df5f3f55a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {