[Bug Fix] Buff Sync (#3896)

Align client and server on buff position (easiest fix to sync client/server)
This commit is contained in:
Fryguy 2024-01-07 15:56:27 -05:00 committed by GitHub
parent cce368d94c
commit 48c6db3a9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3508,8 +3508,6 @@ int Mob::AddBuff(Mob *caster, uint16 spell_id, int duration, int32 level_overrid
LogSpells("Adding buff [{}] will overwrite spell [{}] in slot [{}] with caster level [{}]", LogSpells("Adding buff [{}] will overwrite spell [{}] in slot [{}] with caster level [{}]",
spell_id, curbuf.spellid, buffslot, curbuf.casterlevel); spell_id, curbuf.spellid, buffslot, curbuf.casterlevel);
// If this is the first buff it would override, use its slot // If this is the first buff it would override, use its slot
if (!will_overwrite && !IsDisciplineBuff(spell_id))
emptyslot = buffslot;
will_overwrite = true; will_overwrite = true;
overwrite_slots.push_back(buffslot); overwrite_slots.push_back(buffslot);
} }