Core/Movement: Fixed chase distance calculation for hovering units

Closes #21668

(cherry picked from commit 4af3c33d04b8ccaba7dc38ce4f2c757970b86156)
This commit is contained in:
Shauren
2021-09-19 22:43:07 +02:00
parent 77cb4d7171
commit 33bf5d3854
@@ -125,7 +125,7 @@ void TargetedMovementGenerator<T, D>::SetTargetLocation(T* owner, bool updateDes
if (updateDestination || !_path)
{
float size = owner->GetCombatReach();
float hoverDiff = owner->GetHoverOffset() - GetTarget()->GetHoverOffset();
float hoverDiff = std::abs(owner->GetHoverOffset() - GetTarget()->GetHoverOffset());
if (!_offset)
{
if (GetTarget()->IsWithinDistInMap(owner, CONTACT_DISTANCE))