Core/Spell: spells with ignore hit result should pierce damage immunities

This commit is contained in:
ariel- authored and roc13x committed 2017-05-04 02:16:30 +01:00
1 parent a6c7f2b98c
commit 39f5cfafc5
1 file changed
+3
+3
View File
@@ -7658,6 +7658,9 @@ bool Unit::IsImmunedToDamage(SpellInfo const* spellInfo) const
if (!spellInfo)
return false;
if (spellInfo->HasAttribute(SPELL_ATTR3_IGNORE_HIT_RESULT))
return false;
if (spellInfo->HasAttribute(SPELL_ATTR1_UNAFFECTED_BY_SCHOOL_IMMUNE) || spellInfo->HasAttribute(SPELL_ATTR2_UNAFFECTED_BY_AURA_SCHOOL_IMMUNE))
return false;