aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Movement/MotionMaster.cpp
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2019-12-22 15:46:48 +0100
committerjackpoz <giacomopoz@gmail.com>2019-12-27 17:28:09 +0100
commit862d47394b8c879f42902f03ecd112b65ff631c2 (patch)
treefe57dee108ffe047a3bbcacc70f275d936d6cc79 /src/server/game/Movement/MotionMaster.cpp
parent8f94c9ef6b843f69d014b7e3a4b3b30e5d1515e4 (diff)
Core/Movement: Fix fleeing speed to 66% run speed
Fix AssistanceMovementGenerator using 100% MOVE_RUN speed instead of 66% . Please note that the fleeing mechanic still has some open issues that this single commit doesn't fix
Diffstat (limited to 'src/server/game/Movement/MotionMaster.cpp')
-rw-r--r--src/server/game/Movement/MotionMaster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Movement/MotionMaster.cpp b/src/server/game/Movement/MotionMaster.cpp
index ce8501cee2c..56934f67c7c 100644
--- a/src/server/game/Movement/MotionMaster.cpp
+++ b/src/server/game/Movement/MotionMaster.cpp
@@ -935,7 +935,7 @@ void MotionMaster::MoveSeekAssistance(float x, float y, float z)
_owner->AttackStop();
_owner->CastStop();
_owner->ToCreature()->SetReactState(REACT_PASSIVE);
- Add(new AssistanceMovementGenerator(EVENT_ASSIST_MOVE, x, y, z));
+ Add(new AssistanceMovementGenerator(EVENT_ASSIST_MOVE, x, y, z, _owner->GetSpeed(MOVE_RUN) * 0.66f));
}
else
TC_LOG_ERROR("movement.motionmaster", "MotionMaster::MoveSeekAssistance: '%s', attempted to seek assistance.", _owner->GetGUID().ToString().c_str());