Core/Spells: do not apply unit_state_casting for instant cast spells.
This commit is contained in:
@@ -2893,7 +2893,8 @@ void Unit::SetCurrentCastedSpell(Spell* pSpell)
|
|||||||
InterruptSpell(CURRENT_AUTOREPEAT_SPELL);
|
InterruptSpell(CURRENT_AUTOREPEAT_SPELL);
|
||||||
m_AutoRepeatFirstCast = true;
|
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;
|
} break;
|
||||||
|
|
||||||
case CURRENT_CHANNELED_SPELL:
|
case CURRENT_CHANNELED_SPELL:
|
||||||
|
|||||||
Reference in New Issue
Block a user