Core/Spells: do not apply unit_state_casting for instant cast spells.

This commit is contained in:
Kandera
2012-06-07 12:02:06 -04:00
parent 7bf459c10e
commit d719730929
+1
View File
@@ -2893,6 +2893,7 @@ void Unit::SetCurrentCastedSpell(Spell* pSpell)
InterruptSpell(CURRENT_AUTOREPEAT_SPELL);
m_AutoRepeatFirstCast = true;
}
if (m_currentSpells[CURRENT_GENERIC_SPELL]->m_spellInfo->CalcCastTime(this) > 0 && IsNonMeleeSpellCasted(false, false, true))
AddUnitState(UNIT_STATE_CASTING);
} break;