Core/Movement: first part of porting the new creature hover handling
This commit is contained in:
1 parent
50a91bd590
commit
eb15db4522
25 files changed
+144
-167
No files matched your search
@@ -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());
|
||||
|
||||
|
||||
Reference in new issue
Block a user