*Fix a bug that UNIT_STAT_CASTING is not cleared when delayed spells are casted.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-08-08 11:53:48 -05:00
1 parent 233f3c8306
commit 462086f3b1
1 file changed
+3
+3
View File
@@ -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
{