*Fix a bug that UNIT_STAT_CASTING is not cleared when delayed spells are casted.
--HG-- branch : trunk
This commit is contained in:
1 parent
233f3c8306
commit
462086f3b1
1 file changed
+3
@@ -2930,6 +2930,9 @@ void Spell::cast(bool skipCheck)
|
||||
m_immediateHandled = false;
|
||||
m_spellState = SPELL_STATE_DELAYED;
|
||||
SetDelayStart(0);
|
||||
|
||||
if(m_caster->hasUnitState(UNIT_STAT_CASTING) && !m_caster->IsNonMeleeSpellCasted(false, false, true))
|
||||
m_caster->clearUnitState(UNIT_STAT_CASTING);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user