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:
Ovahlord
2020-04-20 12:39:52 +02:00
parent a84733a02c
commit 749fdc06d1

View File

@@ -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;
}
}