mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Fix spline flag in bot knockback packet
This commit is contained in:
parent
90be77baae
commit
8f5be075b4
@ -26,6 +26,7 @@
|
|||||||
#include "SpellAuraEffects.h"
|
#include "SpellAuraEffects.h"
|
||||||
#include "UpdateTime.h"
|
#include "UpdateTime.h"
|
||||||
#include "Vehicle.h"
|
#include "Vehicle.h"
|
||||||
|
#include "../../../src/server/game/Entities/Unit/Unit.h"
|
||||||
|
|
||||||
std::vector<std::string>& split(std::string const s, char delim, std::vector<std::string>& elems);
|
std::vector<std::string>& split(std::string const s, char delim, std::vector<std::string>& elems);
|
||||||
std::vector<std::string> split(std::string const s, char delim);
|
std::vector<std::string> 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.SetMovementFlags(MOVEMENTFLAG_FALLING);
|
||||||
bot->m_movementInfo.AddMovementFlag(MOVEMENTFLAG_FORWARD);
|
bot->m_movementInfo.AddMovementFlag(MOVEMENTFLAG_FORWARD);
|
||||||
bot->m_movementInfo.AddMovementFlag(MOVEMENTFLAG_PENDING_STOP);
|
bot->m_movementInfo.AddMovementFlag(MOVEMENTFLAG_PENDING_STOP);
|
||||||
|
if (bot->m_movementInfo.HasMovementFlag(MOVEMENTFLAG_SPLINE_ELEVATION))
|
||||||
|
bot->m_movementInfo.RemoveMovementFlag(MOVEMENTFLAG_SPLINE_ELEVATION);
|
||||||
|
|
||||||
// copy MovementInfo
|
// copy MovementInfo
|
||||||
MovementInfo movementInfo = bot->m_movementInfo;
|
MovementInfo movementInfo = bot->m_movementInfo;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user