Fix server error when generating single sptBear/sptUsec

This commit is contained in:
Dev 2024-01-25 12:59:45 +00:00
parent 4fee533622
commit fc9e3f9f59

View File

@ -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)