From 39f5cfafc52af9d2bd3c78b0ee546c005884416f Mon Sep 17 00:00:00 2001 From: ariel- Date: Wed, 16 Nov 2016 23:04:19 -0300 Subject: [PATCH] Core/Spell: spells with ignore hit result should pierce damage immunities --- src/server/game/Entities/Unit/Unit.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 5ba0e1306dd..dfb81a64ce7 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -7658,6 +7658,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;