We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36cb2d4 commit 8d49be5Copy full SHA for 8d49be5
src/server/game/Entities/Unit/Unit.cpp
@@ -13517,7 +13517,7 @@ bool Unit::SetHover(bool enable, bool updateAnimTier /*= true*/)
13517
//! No need to check height on ascent
13518
AddUnitMovementFlag(MOVEMENTFLAG_HOVER);
13519
if (hoverHeight && GetPositionZ() - GetFloorZ() < hoverHeight)
13520
- UpdateHeight(GetPositionZ() + hoverHeight);
+ UpdateHeight(std::max(GetFloorZ() + hoverHeight, GetPositionZ()));
13521
}
13522
else
13523
{
0 commit comments