mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
Core/Spells: Prevent Divine Intervention from removing death persistent auras
Such as Dungeon Deserter, Resurrection Sickness, etc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user