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

3f19eea5e41fd47b571c17529e08d9f8caa91705 follow-up. Without the #16658 regression

(cherry picked from commit c5d1b4656971f5a9cbe37e082ba817a133917cc1)
This commit is contained in:
ariel-
2018-01-21 15:15:35 +01:00
committed by joschiwald
parent 97980f4e0a
commit d9f74278f7
+2 -1
View File
@@ -7177,7 +7177,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))