From bc0334472555f9249c85a0f205078b2d22500e56 Mon Sep 17 00:00:00 2001 From: H0zen Date: Wed, 18 Nov 2015 09:37:00 +0200 Subject: [PATCH] Fixing a glitch. --- src/game/Object/CreatureEventAI.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/game/Object/CreatureEventAI.cpp b/src/game/Object/CreatureEventAI.cpp index 2fd84288..ae6d511f 100644 --- a/src/game/Object/CreatureEventAI.cpp +++ b/src/game/Object/CreatureEventAI.cpp @@ -768,7 +768,11 @@ void CreatureEventAI::ProcessAction(CreatureEventAI_Action const& action, uint32 case ACTION_T_COMBAT_MOVEMENT: //21 // ignore no affect case if (IsCombatMovement() == (action.combat_movement.state != 0) || m_creature->IsNonMeleeSpellCasted(false)) - { return; } + { + if (IsCombatMovement()) + { AddCombatMovementFlags(COMBAT_MOVEMENT_SCRIPT); } + return; + } if (action.combat_movement.state != 0) { AddCombatMovementFlags(COMBAT_MOVEMENT_SCRIPT); }