Core/Spells: Check correct Attributes field in CanSpellPierceImmuneAura, patch by Maxdestroyer

Closes issue #3785.

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-09-05 11:33:35 +02:00
parent 67c37b37cc
commit b39a21b795
+1 -1
View File
@@ -3221,7 +3221,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->AttributesEx & SPELL_ATTR_UNAFFECTED_BY_INVULNERABILITY)))
&& !(aura && (aura->Attributes & SPELL_ATTR_UNAFFECTED_BY_INVULNERABILITY)))
return true;
return false;