Core/Movement: Fixed chase distance calculation for hovering units

Port From (https://github.com/TrinityCore/TrinityCore/commit/33bf5d385451e12917c4e48f29b14554553c91df)
This commit is contained in:
hondacrx
2021-09-21 18:57:34 -04:00
parent ed1fa6282e
commit d771b5c9f6
@@ -142,7 +142,7 @@ namespace Game.Movement
if (updateDestination || _path == null)
{
float size = owner.GetCombatReach();
float hoverDiff = owner.GetHoverOffset() - GetTarget().GetHoverOffset();
float hoverDiff = Math.Abs(owner.GetHoverOffset() - GetTarget().GetHoverOffset());
if (_offset == 0)
{
if (GetTarget().IsWithinDistInMap(owner, SharedConst.ContactDistance))