diff --git a/src/PlayerbotAI.cpp b/src/PlayerbotAI.cpp index c8753633..d60d9f02 100644 --- a/src/PlayerbotAI.cpp +++ b/src/PlayerbotAI.cpp @@ -26,6 +26,7 @@ #include "SpellAuraEffects.h" #include "UpdateTime.h" #include "Vehicle.h" +#include "../../../src/server/game/Entities/Unit/Unit.h" std::vector& split(std::string const s, char delim, std::vector& elems); std::vector split(std::string const s, char delim); @@ -678,6 +679,8 @@ void PlayerbotAI::HandleBotOutgoingPacket(WorldPacket const& packet) bot->m_movementInfo.SetMovementFlags(MOVEMENTFLAG_FALLING); bot->m_movementInfo.AddMovementFlag(MOVEMENTFLAG_FORWARD); bot->m_movementInfo.AddMovementFlag(MOVEMENTFLAG_PENDING_STOP); + if (bot->m_movementInfo.HasMovementFlag(MOVEMENTFLAG_SPLINE_ELEVATION)) + bot->m_movementInfo.RemoveMovementFlag(MOVEMENTFLAG_SPLINE_ELEVATION); // copy MovementInfo MovementInfo movementInfo = bot->m_movementInfo;