Core/Units: Fixed a mistake that cause unroot packet not to be sent when stun was removed

This commit is contained in:
Shauren committed 2013-06-28 17:00:57 +02:00
1 parent 1bb4ceded3
commit 66d8bdb943
4 files changed
+118 -128

No files matched your search

@@ -4693,6 +4693,48 @@ MovementStatusElements const SplineMoveSetNormalFall[] =
MSEEnd,
};
MovementStatusElements const SplineMoveRoot[] =
{
MSEHasGuidByte5,
MSEHasGuidByte4,
MSEHasGuidByte6,
MSEHasGuidByte1,
MSEHasGuidByte3,
MSEHasGuidByte7,
MSEHasGuidByte2,
MSEHasGuidByte0,
MSEGuidByte2,
MSEGuidByte1,
MSEGuidByte7,
MSEGuidByte3,
MSEGuidByte5,
MSEGuidByte0,
MSEGuidByte6,
MSEGuidByte4,
MSEEnd,
};
MovementStatusElements const SplineMoveUnroot[] =
{
MSEHasGuidByte0,
MSEHasGuidByte1,
MSEHasGuidByte6,
MSEHasGuidByte5,
MSEHasGuidByte3,
MSEHasGuidByte2,
MSEHasGuidByte7,
MSEHasGuidByte4,
MSEGuidByte6,
MSEGuidByte3,
MSEGuidByte1,
MSEGuidByte5,
MSEGuidByte2,
MSEGuidByte0,
MSEGuidByte7,
MSEGuidByte4,
MSEEnd,
};
MovementStatusElements const MoveSetCanFly[] =
{
MSEHasGuidByte1,
@@ -4869,6 +4911,50 @@ MovementStatusElements const MoveNormalFall[] =
MSEEnd,
};
MovementStatusElements const MoveRoot[] =
{
MSEHasGuidByte2,
MSEHasGuidByte7,
MSEHasGuidByte6,
MSEHasGuidByte0,
MSEHasGuidByte5,
MSEHasGuidByte4,
MSEHasGuidByte1,
MSEHasGuidByte3,
MSEGuidByte1,
MSEGuidByte0,
MSEGuidByte2,
MSEGuidByte5,
MSECounter,
MSEGuidByte3,
MSEGuidByte4,
MSEGuidByte7,
MSEGuidByte6,
MSEEnd,
};
MovementStatusElements const MoveUnroot[] =
{
MSEHasGuidByte0,
MSEHasGuidByte1,
MSEHasGuidByte3,
MSEHasGuidByte7,
MSEHasGuidByte5,
MSEHasGuidByte2,
MSEHasGuidByte4,
MSEHasGuidByte6,
MSEGuidByte3,
MSEGuidByte6,
MSEGuidByte1,
MSECounter,
MSEGuidByte2,
MSEGuidByte0,
MSEGuidByte7,
MSEGuidByte4,
MSEGuidByte5,
MSEEnd,
};
MovementStatusElements const ChangeSeatsOnControlledVehicle[] =
{
MSEPositionY,
@@ -5333,6 +5419,10 @@ MovementStatusElements const* GetMovementStatusElementsSequence(Opcodes opcode)
return SplineMoveSetFeatherFall;
case SMSG_SPLINE_MOVE_SET_NORMAL_FALL:
return SplineMoveSetNormalFall;
case SMSG_SPLINE_MOVE_ROOT:
return SplineMoveRoot;
case SMSG_SPLINE_MOVE_UNROOT:
return SplineMoveUnroot;
case SMSG_MOVE_SET_CAN_FLY:
return MoveSetCanFly;
case SMSG_MOVE_UNSET_CAN_FLY:
@@ -5349,6 +5439,10 @@ MovementStatusElements const* GetMovementStatusElementsSequence(Opcodes opcode)
return MoveFeatherFall;
case SMSG_MOVE_NORMAL_FALL:
return MoveNormalFall;
case SMSG_MOVE_ROOT:
return MoveRoot;
case SMSG_MOVE_UNROOT:
return MoveUnroot;
case CMSG_CHANGE_SEATS_ON_CONTROLLED_VEHICLE:
return ChangeSeatsOnControlledVehicle;
case CMSG_CAST_SPELL: