aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Movement/MovementStructures.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2013-06-28 17:00:57 +0200
committerShauren <shauren.trinity@gmail.com>2013-06-28 17:00:57 +0200
commit66d8bdb943088d83a95784171e4955af7d5d143e (patch)
tree5f9b99d9ca6122314299421f24dc6ee7b9a7368c /src/server/game/Movement/MovementStructures.cpp
parent1bb4ceded31c9a2f6f4d278af57afee7eac76444 (diff)
Core/Units: Fixed a mistake that cause unroot packet not to be sent when stun was removed
Diffstat (limited to 'src/server/game/Movement/MovementStructures.cpp')
-rw-r--r--src/server/game/Movement/MovementStructures.cpp94
1 files changed, 94 insertions, 0 deletions
diff --git a/src/server/game/Movement/MovementStructures.cpp b/src/server/game/Movement/MovementStructures.cpp
index 61f1ded14e3..a0f70c7b96c 100644
--- a/src/server/game/Movement/MovementStructures.cpp
+++ b/src/server/game/Movement/MovementStructures.cpp
@@ -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: