diff --git a/src/core/execution/WinCheckExecution.ts b/src/core/execution/WinCheckExecution.ts index edf5a1e5d..12619bdb6 100644 --- a/src/core/execution/WinCheckExecution.ts +++ b/src/core/execution/WinCheckExecution.ts @@ -1,5 +1,12 @@ import { EventBus, GameEvent } from "../EventBus"; -import { Execution, Game, GameMode, Player, Team } from "../game/Game"; +import { + Execution, + Game, + GameMode, + Player, + Team, + TeamName, +} from "../game/Game"; export class WinEvent implements GameEvent { constructor(public readonly winner: Player) {} @@ -66,6 +73,7 @@ export class WinCheckExecution implements Execution { this.mg.numLandTiles() - this.mg.numTilesWithFallout(); const percentage = (max[1] / numTilesWithoutFallout) * 100; if (percentage > this.mg.config().percentageTilesOwnedToWin()) { + if (max[0].name == TeamName.Bot) return; this.mg.setWinner(max[0].name, this.mg.stats().stats()); console.log(`${max[0].name} has won the game`); this.active = false;