Core/Movement: Implemented method to send SMSG_SPLINE_MOVE_SET_ANIM
This commit is contained in:
1 parent
feb5ade2d7
commit
812b6acbc3
2 files changed
+11
-5
No files matched your search
@@ -35,7 +35,6 @@
|
||||
#include "Log.h"
|
||||
#include "MapManager.h"
|
||||
#include "MoveSpline.h"
|
||||
#include "MoveSplineInit.h"
|
||||
#include "ObjectAccessor.h"
|
||||
#include "ObjectMgr.h"
|
||||
#include "Opcodes.h"
|
||||
@@ -16844,6 +16843,14 @@ void Unit::SendSetPlayHoverAnim(bool enable)
|
||||
SendMessageToSet(&data, true);
|
||||
}
|
||||
|
||||
void Unit::SendMovementSetSplineAnim(Movement::AnimType anim)
|
||||
{
|
||||
WorldPacket data(SMSG_SPLINE_MOVE_SET_ANIM, 8 + 4);
|
||||
data.append(GetPackGUID());
|
||||
data << uint32(anim);
|
||||
SendMessageToSet(&data, false);
|
||||
}
|
||||
|
||||
bool Unit::IsSplineEnabled() const
|
||||
{
|
||||
return movespline->Initialized();
|
||||
|
||||
Reference in new issue
Block a user