From 283784eb44a5108149af3f9b07fa60387108db1e Mon Sep 17 00:00:00 2001 From: Scott Anderson <662325+scottanderson@users.noreply.github.com> Date: Thu, 15 May 2025 00:02:44 -0400 Subject: [PATCH] src/core/game/GameView.ts --- src/core/game/GameView.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/core/game/GameView.ts b/src/core/game/GameView.ts index 080698b65..c4578baae 100644 --- a/src/core/game/GameView.ts +++ b/src/core/game/GameView.ts @@ -98,9 +98,6 @@ export class UnitView { return this.data.constructionType; } dstPortId(): number | undefined { - if (this.type() !== UnitType.TradeShip) { - throw Error("Must be a trade ship"); - } return this.data.dstPortId; } detonationDst(): TileRef | undefined {