From f351eac0af586d6d4d332525cfd6039d36ba253b Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Tue, 28 May 2019 20:27:07 +0200 Subject: [PATCH] Core/Movement: Liftoff and Takeoff will now always use fly and catmullrom movement flags --- src/server/game/Movement/MotionMaster.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/server/game/Movement/MotionMaster.cpp b/src/server/game/Movement/MotionMaster.cpp index 6734e078d2b..28833459655 100644 --- a/src/server/game/Movement/MotionMaster.cpp +++ b/src/server/game/Movement/MotionMaster.cpp @@ -352,7 +352,9 @@ void MotionMaster::MoveLand(uint32 id, Position const& pos) TC_LOG_DEBUG("misc", "Creature (Entry: %u) landing point (ID: %u X: %f Y: %f Z: %f).", _owner->GetEntry(), id, x, y, z); Movement::MoveSplineInit init(_owner); - init.MoveTo(x, y, z); + init.MoveTo(x, y, z, false); + init.SetSmooth(); + init.SetFly(); init.SetAnimation(Movement::ToGround); init.Launch(); Mutate(new EffectMovementGenerator(id), MOTION_SLOT_ACTIVE); @@ -366,7 +368,9 @@ void MotionMaster::MoveTakeoff(uint32 id, Position const& pos) TC_LOG_DEBUG("misc", "Creature (Entry: %u) landing point (ID: %u X: %f Y: %f Z: %f).", _owner->GetEntry(), id, x, y, z); Movement::MoveSplineInit init(_owner); - init.MoveTo(x, y, z); + init.MoveTo(x, y, z, false); + init.SetSmooth(); + init.SetFly(); init.SetAnimation(Movement::ToFly); init.Launch(); Mutate(new EffectMovementGenerator(id), MOTION_SLOT_ACTIVE);