Skip to content

Commit

Permalink
Core/Spells: Fix indent
Browse files Browse the repository at this point in the history
  • Loading branch information
Shauren committed May 18, 2024
1 parent bdb5c72 commit dd40785
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/server/game/Spells/Spell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6398,15 +6398,15 @@ SpellCastResult Spell::CheckMovement() const
if (IsTriggered())
return SPELL_CAST_OK;

if (getState() == SPELL_STATE_PREPARING)
{
if (m_casttime > 0)
if (m_spellInfo->InterruptFlags & SPELL_INTERRUPT_FLAG_MOVEMENT)
return SPELL_FAILED_MOVING;
}
else if (getState() == SPELL_STATE_CASTING)
if (!m_spellInfo->IsMoveAllowedChannel())
if (getState() == SPELL_STATE_PREPARING)
{
if (m_casttime > 0)
if (m_spellInfo->InterruptFlags & SPELL_INTERRUPT_FLAG_MOVEMENT)
return SPELL_FAILED_MOVING;
}
else if (getState() == SPELL_STATE_CASTING)
if (!m_spellInfo->IsMoveAllowedChannel())
return SPELL_FAILED_MOVING;

return SPELL_CAST_OK;
}
Expand Down

0 comments on commit dd40785

Please sign in to comment.