Core/Movement: first part of porting the new creature hover handling

This commit is contained in:
Ovahlord committed 2019-02-18 01:52:15 +01:00
1 parent 50a91bd590
commit eb15db4522
25 files changed
+144 -167

No files matched your search

+1 -3
View File
@@ -90,11 +90,9 @@ void WorldSession::HandleMoveWorldportAckOpcode()
float x = loc.GetPositionX();
float y = loc.GetPositionY();
float z = loc.GetPositionZ();
float o = loc.GetOrientation();
float z = loc.GetPositionZ() + GetPlayer()->GetHoverOffset();
if (GetPlayer()->HasUnitMovementFlag(MOVEMENTFLAG_HOVER))
z += GetPlayer()->GetFloatValue(UNIT_FIELD_HOVERHEIGHT);
GetPlayer()->Relocate(x, y, z, o);
GetPlayer()->SetFallInformation(0, GetPlayer()->GetPositionZ());