From 219086d9bbce9bc095778862843a862bd219ba22 Mon Sep 17 00:00:00 2001 From: Dev Date: Wed, 10 Jan 2024 21:08:00 +0000 Subject: [PATCH] Fix only one type of bot spawning --- project/src/controllers/BotController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/controllers/BotController.ts b/project/src/controllers/BotController.ts index b28406df..593ac00c 100644 --- a/project/src/controllers/BotController.ts +++ b/project/src/controllers/BotController.ts @@ -201,7 +201,7 @@ export class BotController } } - cacheKey = `${botRole}${details.botDifficulty}`; + cacheKey = `${details.role}${details.botDifficulty}`; // Check for bot in cache, add if not if (!this.botGenerationCacheService.cacheHasBotOfRole(cacheKey))