Core/Units: Only update height in SetHover if unit is bellow HoverHeight
Port From (https://github.com/TrinityCore/TrinityCore/commit/10c915dd34ee94b267b92eef49cd0ecd22d643bf)
This commit is contained in:
@@ -1020,7 +1020,7 @@ namespace Game.Entities
|
|||||||
{
|
{
|
||||||
//! No need to check height on ascent
|
//! No need to check height on ascent
|
||||||
AddUnitMovementFlag(MovementFlag.Hover);
|
AddUnitMovementFlag(MovementFlag.Hover);
|
||||||
if (hoverHeight != 0)
|
if (hoverHeight != 0 && GetPositionZ() - GetFloorZ() < hoverHeight)
|
||||||
UpdateHeight(GetPositionZ() + hoverHeight);
|
UpdateHeight(GetPositionZ() + hoverHeight);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user