From 1b044032034e82bbbc1dad50605af931f0ee1042 Mon Sep 17 00:00:00 2001 From: variablevince <24507472+VariableVince@users.noreply.github.com> Date: Mon, 27 Oct 2025 23:06:17 +0100 Subject: [PATCH] Give test players tiles so it doesn't fail on isAlive check --- tests/PlayerImpl.test.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/PlayerImpl.test.ts b/tests/PlayerImpl.test.ts index 7f47a1cd2..d247af9be 100644 --- a/tests/PlayerImpl.test.ts +++ b/tests/PlayerImpl.test.ts @@ -6,6 +6,7 @@ import { UnitType, } from "../src/core/game/Game"; import { setup } from "./util/Setup"; +import { SpawnExecution } from "../src/core/execution/SpawnExecution"; let game: Game; let player: Player; @@ -24,6 +25,12 @@ describe("PlayerImpl", () => { ], ); + // Add spawn executions to give players territory + game.addExecution( + new SpawnExecution(game.player("player_id").info(), game.ref(0, 0)), + new SpawnExecution(game.player("other_id").info(), game.ref(20, 20)), + ); + while (game.inSpawnPhase()) { game.executeNextTick(); }