diff --git a/server/src/engine/orchestrator.ts b/server/src/engine/orchestrator.ts index 6948ef1..c2d837a 100644 --- a/server/src/engine/orchestrator.ts +++ b/server/src/engine/orchestrator.ts @@ -353,6 +353,7 @@ async function executeFightRounds(fightId: string, botA: BotRecord, botB: BotRec let winnerId: string | null = null let lastRound = 0 const usedTypes = new Set() + const hasHuman = isHumanPlayer(botA.webhookUrl) || isHumanPlayer(botB.webhookUrl) // Pick a random round for retro mode (rounds 3-8, ensuring it's not too early or late) const retroRound = 3 + Math.floor(Math.random() * Math.min(6, MAX_ROUNDS - 4)) @@ -361,7 +362,7 @@ async function executeFightRounds(fightId: string, botA: BotRecord, botB: BotRec lastRound = round const challenge = round === retroRound ? generateRetroChallenge() - : pickChallenge(usedTypes, arena.modifier, undefined, round) + : pickChallenge(usedTypes, arena.modifier, undefined, round, hasHuman) usedTypes.add(challenge.type) emit(fightId, 'round_start', {