From 09ec2ea0a9ea2092af7dd5546dee6218427f30af Mon Sep 17 00:00:00 2001 From: bo Date: Sun, 22 Mar 2026 14:29:59 -0500 Subject: [PATCH] Position follow bots in rear arc behind master --- .../Bots/playerbot/strategy/actions/MovementActions.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/Bots/playerbot/strategy/actions/MovementActions.cpp b/src/modules/Bots/playerbot/strategy/actions/MovementActions.cpp index 8491276e0..3160ad363 100644 --- a/src/modules/Bots/playerbot/strategy/actions/MovementActions.cpp +++ b/src/modules/Bots/playerbot/strategy/actions/MovementActions.cpp @@ -154,7 +154,8 @@ float MovementAction::GetFollowAngle() if ( ref->getSource() == bot) { - return 2 * M_PI / (group->GetMembersCount() -1) * index; + int botCount = (int)group->GetMembersCount() - 1; + return M_PI / 2.0f + M_PI * (index - 1) / std::max(botCount - 1, 1); } index++;