From 8392bc97cfc4dbb0923fe60277a58b73adfba4f8 Mon Sep 17 00:00:00 2001 From: Dev Date: Fri, 5 Jul 2024 20:10:24 +0100 Subject: [PATCH] Moved call to `clearStoredBots()` to start raid function --- project/src/controllers/BotController.ts | 3 --- project/src/controllers/MatchController.ts | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/project/src/controllers/BotController.ts b/project/src/controllers/BotController.ts index c893a5cf..6dcf84be 100644 --- a/project/src/controllers/BotController.ts +++ b/project/src/controllers/BotController.ts @@ -210,9 +210,6 @@ export class BotController sessionId: string, ): Promise { - // Clear bot cache before any work starts - this.botGenerationCacheService.clearStoredBots(); - const raidSettings = this.applicationContext .getLatestValue(ContextVariableType.RAID_CONFIGURATION) ?.getValue(); diff --git a/project/src/controllers/MatchController.ts b/project/src/controllers/MatchController.ts index 9a535129..50a6b2f3 100644 --- a/project/src/controllers/MatchController.ts +++ b/project/src/controllers/MatchController.ts @@ -384,6 +384,9 @@ export class MatchController locationLoot: this.locationController.generate(request.location), }; + // Clear bot cache ready for a fresh raid + this.botGenerationCacheService.clearStoredBots(); + return result; }