diff options
| author | megamage <none@none> | 2009-08-08 11:53:48 -0500 | 
|---|---|---|
| committer | megamage <none@none> | 2009-08-08 11:53:48 -0500 | 
| commit | 462086f3b11931f04efec5b9baef2a88f859fac6 (patch) | |
| tree | 1c9d8662da185847e50d27eeb9aa5b3459f40239 /src | |
| parent | 233f3c830600e231f0bd7a976ba936ac4705bc82 (diff) | |
*Fix a bug that UNIT_STAT_CASTING is not cleared when delayed spells are casted.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/Spell.cpp | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 2a2a89399c7..991b525afa7 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -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      { | 
