From 08e0390d9503d4dd2b43dbe3224a70f3e76dec8c Mon Sep 17 00:00:00 2001 From: ariel- Date: Mon, 12 Sep 2016 12:41:02 -0300 Subject: Core/Spell: do not cast interrupt effect if the spell did not hit --- src/server/game/Spells/Spell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index f9e128f9d89..8332219cff1 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -2465,7 +2465,7 @@ void Spell::DoAllEffectOnTarget(TargetInfo* target) } // Check for SPELL_ATTR7_INTERRUPT_ONLY_NONPLAYER - if (m_spellInfo->HasAttribute(SPELL_ATTR7_INTERRUPT_ONLY_NONPLAYER) && unit->GetTypeId() != TYPEID_PLAYER) + if (missInfo == SPELL_MISS_NONE && m_spellInfo->HasAttribute(SPELL_ATTR7_INTERRUPT_ONLY_NONPLAYER) && unit->GetTypeId() != TYPEID_PLAYER) caster->CastSpell(unit, SPELL_INTERRUPT_NONPLAYER, true); if (spellHitTarget) -- cgit v1.2.3