mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-05 20:22:28 +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) {
|
for (int slot = 0; slot < GetMaxTotalSlots(); ++slot) {
|
||||||
auto s = buffs[slot].spellid;
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user