*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
This commit is contained in:
1 parent
74357a8971
commit
0f7b23070f
2 files changed
+5
-3
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user