Core/Movement
* Implemented a generic way of sending movement packets depending on who controls the unit (player or server controlled) * Added possibility to specify extra elements in movement packets (such as speed, extra passenger guid, collision height and similar) without having to add a special element only for these * Removed Unit::SendMovementFlagUpdate as it was something working only in 3.3.5a and earlier (no serverside HEARTBEAT opcode exists now)
This commit is contained in:
@@ -103,9 +103,15 @@ public:
|
||||
|
||||
WorldPacket data;
|
||||
if (strncmp(args, "on", 3) == 0)
|
||||
target->SendMovementSetCanFly(true);
|
||||
{
|
||||
target->AddUnitMovementFlag(MOVEMENTFLAG_CAN_FLY);
|
||||
target->SendMovementCanFlyChange();
|
||||
}
|
||||
else if (strncmp(args, "off", 4) == 0)
|
||||
target->SendMovementSetCanFly(false);
|
||||
{
|
||||
target->RemoveUnitMovementFlag(MOVEMENTFLAG_CAN_FLY);
|
||||
target->SendMovementCanFlyChange();
|
||||
}
|
||||
else
|
||||
{
|
||||
handler->SendSysMessage(LANG_USE_BOL);
|
||||
|
||||
Reference in New Issue
Block a user