Fix server error when generating single sptBear/sptUsec
This commit is contained in:
parent
4fee533622
commit
fc9e3f9f59
@ -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
|
// Roll chance to be pmc if type is allowed to be one
|
||||||
const botConvertRateMinMax = this.pmcConfig.convertIntoPmcChance[requestedBot.Role.toLowerCase()];
|
const botConvertRateMinMax = this.pmcConfig.convertIntoPmcChance[requestedBot.Role.toLowerCase()];
|
||||||
if (botConvertRateMinMax)
|
if (botConvertRateMinMax)
|
||||||
|
Loading…
Reference in New Issue
Block a user