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>
This commit is contained in:
Anubisss
2011-01-02 22:43:36 +01:00
parent 9c0cd63e93
commit 80da87f015

View File

@@ -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)