From 167e55c12614d529a29315530d46f4b7c2a26885 Mon Sep 17 00:00:00 2001 From: Chomp Date: Mon, 17 Feb 2025 14:28:47 +0000 Subject: [PATCH] Resolve issue with generating too few bots --- Libraries/Core/Controllers/BotController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Core/Controllers/BotController.cs b/Libraries/Core/Controllers/BotController.cs index 02141678..81cf63f8 100644 --- a/Libraries/Core/Controllers/BotController.cs +++ b/Libraries/Core/Controllers/BotController.cs @@ -196,7 +196,7 @@ public class BotController( pmcProfile, allPmcsHaveSameNameAsPlayer, raidSettings, - _botConfig.PresetBatch!.GetValueOrDefault(condition.Role, condition.Limit), + Math.Max(_botConfig.PresetBatch!.GetValueOrDefault(condition.Role, 1), condition.Limit), // Get largest between value passed in from request vs whats in bot.config _botHelper.IsBotPmc(condition.Role)); // Generate bots for the current condition