spline changes for mmaps.
This commit is contained in:
1 parent
c8f708f9ad
commit
f478e6be2b
3 files changed
+24
-11
No files matched your search
@@ -54,7 +54,7 @@ namespace Movement
|
||||
return MOVE_RUN;
|
||||
}
|
||||
|
||||
void MoveSplineInit::Launch()
|
||||
int32 MoveSplineInit::Launch()
|
||||
{
|
||||
MoveSpline& move_spline = *unit.movespline;
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace Movement
|
||||
args.velocity = unit.GetSpeed(SelectSpeedType(moveFlags));
|
||||
|
||||
if (!args.Validate())
|
||||
return;
|
||||
return 0;
|
||||
|
||||
if (moveFlags & MOVEMENTFLAG_ROOT)
|
||||
moveFlags &= ~MOVEMENTFLAG_MASK_MOVING;
|
||||
@@ -98,6 +98,8 @@ namespace Movement
|
||||
data.append(unit.GetPackGUID());
|
||||
PacketBuilder::WriteMonsterMove(move_spline, data);
|
||||
unit.SendMessageToSet(&data,true);
|
||||
|
||||
return move_spline.Duration();
|
||||
}
|
||||
|
||||
MoveSplineInit::MoveSplineInit(Unit& m) : unit(m)
|
||||
|
||||
Reference in new issue
Block a user