From fc9e3f9f5999e984a8ab8f56e1fa752306f5cae1 Mon Sep 17 00:00:00 2001 From: Dev Date: Thu, 25 Jan 2024 12:59:45 +0000 Subject: [PATCH] Fix server error when generating single sptBear/sptUsec --- project/src/controllers/BotController.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/project/src/controllers/BotController.ts b/project/src/controllers/BotController.ts index 270c2689..ef4bf370 100644 --- a/project/src/controllers/BotController.ts +++ b/project/src/controllers/BotController.ts @@ -258,6 +258,12 @@ export class BotController ); } + if (this.botHelper.isBotPmc(botGenerationDetails.role)) + { + botGenerationDetails.isPmc = true; + botGenerationDetails.side = this.botHelper.getPmcSideByRole(requestedBot.Role); + } + // Roll chance to be pmc if type is allowed to be one const botConvertRateMinMax = this.pmcConfig.convertIntoPmcChance[requestedBot.Role.toLowerCase()]; if (botConvertRateMinMax)