From 5fa7722b945f3ad61c15862a47143f3ffc0d8f70 Mon Sep 17 00:00:00 2001 From: Liberate Date: Sat, 18 Sep 2010 12:42:17 +0200 Subject: [PATCH] Core/Spells: Fixes certain spells that could pierce immunity auras while they shouldn't. Fixes issue #3264 Fixes issue #3471 Fixes issue #3992 --HG-- branch : trunk --- src/server/game/Spells/SpellMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp index 92f750aa8c..eafc039b79 100644 --- a/src/server/game/Spells/SpellMgr.cpp +++ b/src/server/game/Spells/SpellMgr.cpp @@ -3225,7 +3225,7 @@ bool CanSpellPierceImmuneAura(SpellEntry const * pierceSpell, SpellEntry const * // these spells (Cyclone for example) can pierce all... if ((pierceSpell->AttributesEx & SPELL_ATTR_EX_UNAFFECTED_BY_SCHOOL_IMMUNE) // ...but not these (Divine shield for example) - && !(aura && (aura->Attributes & SPELL_ATTR_UNAFFECTED_BY_INVULNERABILITY))) + && !(aura && (aura->Mechanic == MECHANIC_IMMUNE_SHIELD || aura->Mechanic == MECHANIC_INVULNERABILITY))) return true; return false;