aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Movement/MotionMaster.cpp
diff options
context:
space:
mode:
authorNoName <322016+Faq@users.noreply.github.com>2020-09-08 18:12:52 +0300
committerGitHub <noreply@github.com>2020-09-08 17:12:52 +0200
commitdad187615df603ad8614531a0ec84c1a5e136838 (patch)
tree2e0fa2b671a3645da2f10ba654c7cc2c1b816db9 /src/server/game/Movement/MotionMaster.cpp
parent9e8915eaac70c0fd6dab98beeaddef59f2741b42 (diff)
Core/Movement: Corrected Animation Tier handling (PR #24875)
Co-authored-by: Warpten <vertozor@gmail.com> Co-authored-by: Ovahlord <dreadkiller@gmx.de> Co-authored-by: Carbenium <carbenium@outlook.com>
Diffstat (limited to 'src/server/game/Movement/MotionMaster.cpp')
-rw-r--r--src/server/game/Movement/MotionMaster.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Movement/MotionMaster.cpp b/src/server/game/Movement/MotionMaster.cpp
index 1dc1a102499..5299421c0a0 100644
--- a/src/server/game/Movement/MotionMaster.cpp
+++ b/src/server/game/Movement/MotionMaster.cpp
@@ -677,7 +677,7 @@ void MotionMaster::MoveLand(uint32 id, Position const& pos)
Movement::MoveSplineInit init(_owner);
init.MoveTo(PositionToVector3(pos), false);
- init.SetAnimation(Movement::ToGround);
+ init.SetAnimation(AnimationTier::Ground);
Add(new GenericMovementGenerator(std::move(init), EFFECT_MOTION_TYPE, id));
}
@@ -687,7 +687,7 @@ void MotionMaster::MoveTakeoff(uint32 id, Position const& pos)
Movement::MoveSplineInit init(_owner);
init.MoveTo(PositionToVector3(pos));
- init.SetAnimation(Movement::ToFly);
+ init.SetAnimation(AnimationTier::Hover);
Add(new GenericMovementGenerator(std::move(init), EFFECT_MOTION_TYPE, id));
}
@@ -829,7 +829,7 @@ void MotionMaster::MoveCirclePath(float x, float y, float z, float radius, bool
{
init.SetFly();
init.SetCyclic();
- init.SetAnimation(Movement::ToFly);
+ init.SetAnimation(AnimationTier::Hover);
}
else
{