mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-30 23:21:29 +00:00
[Bug Fix] When refreshing buffs, attempt to use the same buffslot if the buff still exists. (#4338)
This commit is contained in:
parent
e803d3e1e1
commit
2df5f3f55a
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user