mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 02:46:33 +01:00
Core/Movement: Fixed chase distance calculation for hovering units
Closes #21668
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user