Core/Movement: Fixed chase distance calculation for hovering units

Closes #21668

(cherry picked from commit 4af3c33d04)
This commit is contained in:
Shauren
2018-03-20 23:30:41 +01:00
parent 77cb4d7171
commit 33bf5d3854

View File

@@ -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))