mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
Core/Movement: follow movements will now throttle the follower's speed in a more aggressive manner to get them back in line more quickly when moving ahead
This commit is contained in:
@@ -132,7 +132,7 @@ bool FollowMovementGenerator::Update(Unit* owner, uint32 diff)
|
||||
else if (distance > (velocity / 2))
|
||||
{
|
||||
// We are beyond our destination, throttle movement to fall back
|
||||
float distMod = 1.f - std::min<float>((distance - (velocity / 2)) * 0.1f, 0.5f);
|
||||
float distMod = 1.f - std::min<float>((distance - (velocity / 2)), 0.5f);
|
||||
velocity *= distMod;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user