diff options
author | Gecko32 <Gecko3262@gmail.com> | 2014-11-04 14:29:18 -0200 |
---|---|---|
committer | Nyeriah <sarah.trysan@live.com> | 2014-11-04 14:29:18 -0200 |
commit | fbcd180716f38eb933c28f33fc7641a0c7696cef (patch) | |
tree | a77470fb5a1210db0f60d9b8f955f231d6b53d9f | |
parent | 6f3153854c3b61bca9ef2c08e1a9ecab8fb1ba27 (diff) |
Core/Spells: Prevent Divine Intervention from removing death persistent auras
Such as Dungeon Deserter, Resurrection Sickness, etc
-rw-r--r-- | src/server/game/Spells/SpellInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Spells/SpellInfo.cpp b/src/server/game/Spells/SpellInfo.cpp index 2462c6a9ac4..049f25d3fa3 100644 --- a/src/server/game/Spells/SpellInfo.cpp +++ b/src/server/game/Spells/SpellInfo.cpp @@ -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 |