Core/Spells: Prevent Divine Intervention from removing death persistent auras

Such as Dungeon Deserter, Resurrection Sickness, etc
This commit is contained in:
Gecko32
2014-11-04 14:29:18 -02:00
committed by Nyeriah
parent 6f3153854c
commit fbcd180716

View File

@@ -1217,8 +1217,8 @@ bool SpellInfo::CanPierceImmuneAura(SpellInfo const* aura) const
bool SpellInfo::CanDispelAura(SpellInfo const* aura) const
{
// These spells (like Mass Dispel) can dispell all auras
if (Attributes & SPELL_ATTR0_UNAFFECTED_BY_INVULNERABILITY)
// These spells (like Mass Dispel) can dispell all auras, except death persistent ones (like Dungeon and Battleground Deserter)
if (Attributes & SPELL_ATTR0_UNAFFECTED_BY_INVULNERABILITY && !aura->IsDeathPersistent())
return true;
// These auras (like Divine Shield) can't be dispelled