mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Movement: Fixed creature hover
Closes #15177
(cherry picked from commit 2baa81065b)
This commit is contained in:
@@ -90,10 +90,7 @@ void WorldSession::HandleMoveWorldportAck()
|
||||
return;
|
||||
}
|
||||
|
||||
float z = loc.GetPositionZ();
|
||||
if (GetPlayer()->HasUnitMovementFlag(MOVEMENTFLAG_HOVER))
|
||||
z += GetPlayer()->m_unitData->HoverHeight;
|
||||
|
||||
float z = loc.GetPositionZ() + GetPlayer()->GetHoverOffset();
|
||||
GetPlayer()->Relocate(loc.GetPositionX(), loc.GetPositionY(), z, loc.GetOrientation());
|
||||
GetPlayer()->SetFallInformation(0, GetPlayer()->GetPositionZ());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user