Navigation Menu

Skip to content

Commit

Permalink
Core/Unit: do not allow judgement spells to bypass damage immunity
Browse files Browse the repository at this point in the history
3f19eea follow-up. Without the #16658 regression

(cherry picked from commit c5d1b46)
  • Loading branch information
ariel- authored and joschiwald committed Jan 21, 2018
1 parent 97980f4 commit d9f7427
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/game/Entities/Unit/Unit.cpp
Expand Up @@ -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))
Expand Down

0 comments on commit d9f7427

Please sign in to comment.