aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnubisss <anubisss210@gmail.com>2011-01-02 22:43:36 +0100
committerAnubisss <anubisss210@gmail.com>2011-01-02 22:43:36 +0100
commit80da87f0150f9f9951361c19e9a53615c32a68f6 (patch)
tree88db304d81f4dafead59f702c45543b3d6d56919 /src
parent9c0cd63e933ece1a9b878b90103b305358202d25 (diff)
Add one more check to EffectDispel.
Passive auras are not dispelable. This fixes a bug like spell Omen of Clarity (16864) can be dispelled by Purge (370) if you have a non passive aura like Mark of the Wild (1126). Signed-off-by: Anubisss <anubisss210@gmail.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Spells/SpellEffects.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index 7ddb0459313..4535b3ce2a4 100755
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -3145,6 +3145,10 @@ void Spell::EffectDispel(SpellEffIndex effIndex)
if (!aurApp)
continue;
+ // don't try to remove passive auras
+ if (aura->IsPassive())
+ continue;
+
if ((1<<aura->GetSpellProto()->Dispel) & dispelMask)
{
if (aura->GetSpellProto()->Dispel == DISPEL_MAGIC)