Core/Spell: do not cast interrupt effect if the spell did not hit

This commit is contained in:
ariel- authored and Aokromes committed 2016-09-14 14:32:16 +02:00
1 parent 72a76d6226
commit 9cf523634d
1 file changed
+1 -1
+1 -1
View File
@@ -2472,7 +2472,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)