Skip to content

Commit

Permalink
Unit/Movement: Make levitate use proper order acks
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Jan 7, 2025
1 parent 2b59043 commit e8ac3dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/game/Anticheat/module/Movement/movement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ uint16 GetOrderResponse(uint16 opcode)
case SMSG_MOVE_WATER_WALK:
case SMSG_MOVE_LAND_WALK:
return CMSG_MOVE_WATER_WALK_ACK;
case SMSG_MOVE_GRAVITY_DISABLE:
return CMSG_MOVE_GRAVITY_DISABLE_ACK;
case SMSG_MOVE_GRAVITY_ENABLE:
return CMSG_MOVE_GRAVITY_ENABLE_ACK;
case SMSG_MOVE_SET_COLLISION_HGT:
return CMSG_MOVE_SET_COLLISION_HGT_ACK;
default:
Expand Down
1 change: 1 addition & 0 deletions src/game/Entities/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13960,6 +13960,7 @@ void Unit::SetLevitate(bool enable)
data << GetPackGUID();
data << counter;
player->GetSession()->SendPacket(data);
player->GetSession()->GetAnticheat()->OrderSent(data.GetOpcode(), counter);
player->GetSession()->IncrementOrderCounter();
return;
}
Expand Down

0 comments on commit e8ac3dc

Please sign in to comment.