aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2016-09-12 12:41:02 -0300
committerGitHub <noreply@github.com>2016-09-12 12:41:02 -0300
commit08e0390d9503d4dd2b43dbe3224a70f3e76dec8c (patch)
treeb534388a19d9eb388841d48f234cb34b1efa3cf5
parent5d87e4af8cac5da0d6ad57c85c78fde08d7cae5b (diff)
Core/Spell: do not cast interrupt effect if the spell did not hit
-rw-r--r--src/server/game/Spells/Spell.cpp2
1 files changed, 1 insertions, 1 deletions
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)