Core/Movement: Fixed chase distance calculation for hovering units
Port From (https://github.com/TrinityCore/TrinityCore/commit/33bf5d385451e12917c4e48f29b14554553c91df)
This commit is contained in:
@@ -142,7 +142,7 @@ namespace Game.Movement
|
|||||||
if (updateDestination || _path == null)
|
if (updateDestination || _path == null)
|
||||||
{
|
{
|
||||||
float size = owner.GetCombatReach();
|
float size = owner.GetCombatReach();
|
||||||
float hoverDiff = owner.GetHoverOffset() - GetTarget().GetHoverOffset();
|
float hoverDiff = Math.Abs(owner.GetHoverOffset() - GetTarget().GetHoverOffset());
|
||||||
if (_offset == 0)
|
if (_offset == 0)
|
||||||
{
|
{
|
||||||
if (GetTarget().IsWithinDistInMap(owner, SharedConst.ContactDistance))
|
if (GetTarget().IsWithinDistInMap(owner, SharedConst.ContactDistance))
|
||||||
|
|||||||
Reference in New Issue
Block a user