From d719730929db84674cee0b56834e2a9ef248e472 Mon Sep 17 00:00:00 2001 From: Kandera Date: Thu, 7 Jun 2012 12:02:06 -0400 Subject: Core/Spells: do not apply unit_state_casting for instant cast spells. --- src/server/game/Entities/Unit/Unit.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/server') diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 0ea8731e591..3315760a2af 100755 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -2893,7 +2893,8 @@ void Unit::SetCurrentCastedSpell(Spell* pSpell) InterruptSpell(CURRENT_AUTOREPEAT_SPELL); m_AutoRepeatFirstCast = true; } - AddUnitState(UNIT_STATE_CASTING); + if (m_currentSpells[CURRENT_GENERIC_SPELL]->m_spellInfo->CalcCastTime(this) > 0 && IsNonMeleeSpellCasted(false, false, true)) + AddUnitState(UNIT_STATE_CASTING); } break; case CURRENT_CHANNELED_SPELL: -- cgit v1.2.3