mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Movement: Fixed chase distance calculation for hovering units
Closes #21668
(cherry picked from commit 4af3c33d04)
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user