Core/Spells: Rename confusing SpellState enum values
Port From (https://github.com/TrinityCore/TrinityCore/commit/2e79d3524f12a525c337c5ce8d84b793cacd6e91)
This commit is contained in:
@@ -2576,7 +2576,7 @@ namespace Game.Spells
|
||||
{
|
||||
SpellInfo curSpellInfo = spell.m_spellInfo;
|
||||
// check if we can interrupt spell
|
||||
if ((spell.GetState() == SpellState.Casting
|
||||
if ((spell.GetState() == SpellState.Channeling
|
||||
|| (spell.GetState() == SpellState.Preparing && spell.GetCastTime() > 0.0f))
|
||||
&& curSpellInfo.CanBeInterrupted(m_caster, unitTarget))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user