mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-04 06:52:33 +00:00
Merge pull request #60 from Valorith/codex/fix-dispelmagic-suppressed-crash
Fix crash when dispelling suppressed buffs
This commit is contained in:
commit
5edc3e54fb
@ -7537,7 +7537,12 @@ void Mob::DispelMagic(Mob* caster, uint16 spell_id, int effect_value, int chance
|
||||
for (int slot = 0; slot < GetMaxTotalSlots(); ++slot) {
|
||||
auto s = buffs[slot].spellid;
|
||||
|
||||
if (s == SPELL_UNKNOWN || spells[s].dispel_flag != 0 || IsDiscipline(s)) {
|
||||
// Suppressed buffs always return when suppression ends; they cannot be dispelled.
|
||||
if (s == SPELL_SUPPRESSED) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!IsValidSpell(s) || spells[s].dispel_flag != 0 || IsDiscipline(s)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user