From 8cce70fe3082118763b067539d52282cc624b895 Mon Sep 17 00:00:00 2001 From: Scott Anderson <662325+scottanderson@users.noreply.github.com> Date: Wed, 14 May 2025 22:47:29 -0400 Subject: [PATCH] src/core/game/PlayerImpl.ts --- src/core/game/PlayerImpl.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/game/PlayerImpl.ts b/src/core/game/PlayerImpl.ts index f3fec6c39..83c59aa44 100644 --- a/src/core/game/PlayerImpl.ts +++ b/src/core/game/PlayerImpl.ts @@ -762,7 +762,6 @@ export class PlayerImpl implements Player { case UnitType.MIRVWarhead: return targetTile; case UnitType.Port: - if (validTiles === null) throw new Error("validTiles is required"); return this.portSpawn(targetTile, validTiles); case UnitType.Warship: return this.warshipSpawn(targetTile); @@ -803,7 +802,7 @@ export class PlayerImpl implements Player { return spawns[0].tile(); } - portSpawn(tile: TileRef, validTiles: TileRef[]): TileRef | false { + portSpawn(tile: TileRef, validTiles: TileRef[] | null): TileRef | false { const spawns = Array.from( this.mg.bfs( tile,