aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNyeriah <sarah.trysan@live.com>2014-11-04 14:35:56 -0200
committerNyeriah <sarah.trysan@live.com>2014-11-04 14:35:56 -0200
commit26f0046adec8e6c4298ff691ec9e8e61dcfb7e2f (patch)
treeadc01625003daaa1990ef61f38aba0d6142b30f7 /src
parente64da763db2dd016f5093a89c4fbee90db95e5fe (diff)
Core/Spells: Prevent Divine Intervention from removing death persistent auras
Such as Dungeon Deserter, Resurrection Sickness, etc Closes #11009 (cherry picked from commit fbcd180716f38eb933c28f33fc7641a0c7696cef)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/SpellInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Spells/SpellInfo.cpp b/src/server/game/Spells/SpellInfo.cpp
index 62d5763d6e2..a5804ffd648 100644
--- a/src/server/game/Spells/SpellInfo.cpp
+++ b/src/server/game/Spells/SpellInfo.cpp
@@ -1380,8 +1380,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