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

3f19eea5e4 follow-up. Without the #16658 regression

(cherry picked from commit c5d1b46569)
This commit is contained in:
ariel-
2016-11-19 20:17:17 -03:00
committed by joschiwald
parent 97980f4e0a
commit d9f74278f7

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))