Core/Movement: Fixed creature hover
Port From (https://github.com/TrinityCore/TrinityCore/commit/2e2b29861878fda2d27156c71a1d8ed7dbe0b4fe)
This commit is contained in:
@@ -264,10 +264,7 @@ namespace Game
|
||||
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