Core/Movement: Fixed chase distance calculation for hovering units

Closes #21668
This commit is contained in:
Shauren
2018-03-20 23:30:41 +01:00
parent 4c069dfd8a
commit 4af3c33d04

View File

@@ -126,7 +126,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))