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
This commit is contained in:
Liberate
2010-09-18 12:42:17 +02:00
parent d036f7726e
commit 5fa7722b94
+1 -1
View File
@@ -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;