diff options
author | Anubisss <anubisss210@gmail.com> | 2011-01-02 22:43:36 +0100 |
---|---|---|
committer | Anubisss <anubisss210@gmail.com> | 2011-01-02 22:43:36 +0100 |
commit | 80da87f0150f9f9951361c19e9a53615c32a68f6 (patch) | |
tree | 88db304d81f4dafead59f702c45543b3d6d56919 /src | |
parent | 9c0cd63e933ece1a9b878b90103b305358202d25 (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-x | src/server/game/Spells/SpellEffects.cpp | 4 |
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) |