diff options
author | jackpoz <giacomopoz@gmail.com> | 2019-12-22 15:46:48 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-12-19 15:34:20 +0100 |
commit | 2327ff4d6dab16cedb5e82c50f1cdcce8983abde (patch) | |
tree | 4aa7d6b8f0d02909a3eb6265d5ebdb4da90daf93 /src/server/game/Movement/MotionMaster.cpp | |
parent | b40cadd5a12445c1265db8d81b2a0c5e73fe6757 (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
(cherry picked from commit 862d47394b8c879f42902f03ecd112b65ff631c2)
Diffstat (limited to 'src/server/game/Movement/MotionMaster.cpp')
-rw-r--r-- | src/server/game/Movement/MotionMaster.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Movement/MotionMaster.cpp b/src/server/game/Movement/MotionMaster.cpp index b6d764862a1..3e788ccfc86 100644 --- a/src/server/game/Movement/MotionMaster.cpp +++ b/src/server/game/Movement/MotionMaster.cpp @@ -990,7 +990,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()); |