Core/Spell: spells with ignore hit result should pierce damage immunities
This commit is contained in:
1 parent
a6c7f2b98c
commit
39f5cfafc5
1 file changed
+3
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user