mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Core/Movement: fixed a typo in chase movement generator that was causing creatures to move backwards all the time when chasing another creature
This commit is contained in:
@@ -172,7 +172,7 @@ bool ChaseMovementGenerator::Update(Unit* owner, uint32 diff)
|
||||
}
|
||||
}
|
||||
else if (owner->GetExactDist2d(target) > rangeTolerance + 0.1f) // 0.1f here to avoid edge cases when the owner has stepped back before
|
||||
LaunchMovement(owner, target, chaseRange, mutualChase);
|
||||
LaunchMovement(owner, target, chaseRange, false, mutualChase);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user