mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Units: Correct Z coord change when enabling hover above ground
This commit is contained in:
@@ -13517,7 +13517,7 @@ bool Unit::SetHover(bool enable, bool updateAnimTier /*= true*/)
|
||||
//! No need to check height on ascent
|
||||
AddUnitMovementFlag(MOVEMENTFLAG_HOVER);
|
||||
if (hoverHeight && GetPositionZ() - GetFloorZ() < hoverHeight)
|
||||
UpdateHeight(GetPositionZ() + hoverHeight);
|
||||
UpdateHeight(std::max(GetFloorZ() + hoverHeight, GetPositionZ()));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user