mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Spells: Rename confusing SpellState enum values
* SPELL_STATE_CASTING -> SPELL_STATE_CHANNELING (was used for "channel in progress") * SPELL_STATE_DELAYED -> SPELL_STATE_LAUNCHED
This commit is contained in:
@@ -2923,7 +2923,7 @@ void Spell::EffectInterruptCast()
|
||||
{
|
||||
SpellInfo const* curSpellInfo = spell->m_spellInfo;
|
||||
// check if we can interrupt spell
|
||||
if ((spell->getState() == SPELL_STATE_CASTING
|
||||
if ((spell->getState() == SPELL_STATE_CHANNELING
|
||||
|| (spell->getState() == SPELL_STATE_PREPARING && spell->GetCastTime() > 0.0f))
|
||||
&& curSpellInfo->CanBeInterrupted(m_caster, unitTarget))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user