Core/Unit: do not allow judgement spells to bypass damage immunity

3f19eea5e41fd47b571c17529e08d9f8caa91705 follow-up. Without the #16658 regression
This commit is contained in:
ariel- authored and roc13x committed 2017-05-04 02:36:54 +01:00
1 parent 938f43302c
commit c7e27dd511
1 file changed
+2 -1
+2 -1
View File
@@ -7671,7 +7671,8 @@ bool Unit::IsImmunedToDamage(SpellInfo const* spellInfo) const
if (!spellInfo)
return false;
if (spellInfo->HasAttribute(SPELL_ATTR3_IGNORE_HIT_RESULT))
// for example 40175
if (spellInfo->HasAttribute(SPELL_ATTR0_UNAFFECTED_BY_INVULNERABILITY) && 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))