Moved call to clearStoredBots() to start raid function

This commit is contained in:
Dev 2024-07-05 20:10:24 +01:00
parent 264a8a06bd
commit 8392bc97cf
2 changed files with 3 additions and 3 deletions

View File

@ -210,9 +210,6 @@ export class BotController
sessionId: string, sessionId: string,
): Promise<IBotBase[]> ): Promise<IBotBase[]>
{ {
// Clear bot cache before any work starts
this.botGenerationCacheService.clearStoredBots();
const raidSettings = this.applicationContext const raidSettings = this.applicationContext
.getLatestValue(ContextVariableType.RAID_CONFIGURATION) .getLatestValue(ContextVariableType.RAID_CONFIGURATION)
?.getValue<IGetRaidConfigurationRequestData>(); ?.getValue<IGetRaidConfigurationRequestData>();

View File

@ -384,6 +384,9 @@ export class MatchController
locationLoot: this.locationController.generate(request.location), locationLoot: this.locationController.generate(request.location),
}; };
// Clear bot cache ready for a fresh raid
this.botGenerationCacheService.clearStoredBots();
return result; return result;
} }