aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Entities/Creature/Creature.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/server/game/Entities/Creature/Creature.cpp b/src/server/game/Entities/Creature/Creature.cpp
index c0c65a43061..57ff7b1a0a7 100644
--- a/src/server/game/Entities/Creature/Creature.cpp
+++ b/src/server/game/Entities/Creature/Creature.cpp
@@ -3389,10 +3389,6 @@ void Creature::DoNotReacquireSpellFocusTarget()
bool Creature::IsMovementPreventedByCasting() const
{
- // Can always move when not casting
- if (!HasUnitState(UNIT_STATE_CASTING))
- return false;
-
// first check if currently a movement allowed channel is active and we're not casting
if (Spell* spell = m_currentSpells[CURRENT_CHANNELED_SPELL])
{
@@ -3404,6 +3400,9 @@ bool Creature::IsMovementPreventedByCasting() const
if (HasSpellFocus())
return true;
+ if (HasUnitState(UNIT_STATE_CASTING))
+ return true;
+
return false;
}