Merge pull request #38 from Valorith/fix/buff-suppression-client-desync

Fix: Prevent OOB access in BuffFadeBySlot for suppressed buffs
This commit is contained in:
Vayle 2026-01-30 22:43:45 -05:00 committed by GitHub
commit ec2c4b5909
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4270,6 +4270,9 @@ void Mob::BuffFadeBySlot(int slot, bool iRecalcBonuses, bool suppress, uint32 su
}
}
// Skip effect removal for suppressed slots — effects were already removed
// during initial suppression, and accessing spells[SPELL_SUPPRESSED] would be OOB.
if (buffs[slot].spellid != SPELL_SUPPRESSED)
for (int i=0; i < EFFECT_COUNT; i++)
{
if(IsBlankSpellEffect(buffs[slot].spellid, i))