aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-07 16:12:50 -0500
committermegamage <none@none>2009-08-07 16:12:50 -0500
commit0f7b23070fd61ac4afd65d415bd56876d3716ea1 (patch)
treea99ec14cb86d8b5f670a0a2efc0dc0f136b6a7c6 /src/game/Spell.cpp
parent74357a8971c45851f5b00415fbc52b8bb168c0b7 (diff)
*Fix a bug introduced in 3874. This makes IsNonMeleeSpellCasted cannot correctly check if caster is casting.
*This fixes the bug that Heigan chases players when he is channelling. --HG-- branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r--src/game/Spell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 21d7cf0250e..9b45eac6b2d 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -3287,7 +3287,7 @@ void Spell::finish(bool ok)
if(IsChanneledSpell(m_spellInfo))
m_caster->UpdateInterruptMask();
- if(!m_caster->IsNonMeleeSpellCasted(false, false, true))
+ if(m_caster->hasUnitState(UNIT_STAT_CASTING) && !m_caster->IsNonMeleeSpellCasted(false, false, true))
m_caster->clearUnitState(UNIT_STAT_CASTING);
// Unsummon summon as possessed creatures on spell cancel