diff options
| author | ariel- <ariel-@users.noreply.github.com> | 2016-11-16 23:04:19 -0300 |
|---|---|---|
| committer | ariel- <ariel-@users.noreply.github.com> | 2016-11-16 23:04:19 -0300 |
| commit | 3f19eea5e41fd47b571c17529e08d9f8caa91705 (patch) | |
| tree | 78afde054d10960336c703c1e3994ef89707052b /src | |
| parent | 400a69bf9efb227e8734668f07ed2f3f2863ba47 (diff) | |
Core/Spell: spells with ignore hit result should pierce damage immunities
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/game/Entities/Unit/Unit.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 565af2293f7..61357a7bd92 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -7874,6 +7874,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; |
