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

This commit is contained in:
ariel-
2016-11-16 23:04:19 -03:00
committed by roc13x
parent a6c7f2b98c
commit 39f5cfafc5

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;