bugfix: bestShoreDeploymentSource would return null if target was not a shore tile.

call targetTransportTile to get a shore tile
This commit is contained in:
evan
2025-04-22 09:10:26 -07:00
parent cee06c82db
commit b816344e8a
+4
View File
@@ -148,6 +148,10 @@ export function bestShoreDeploymentSource(
player: Player,
target: TileRef,
): TileRef | null {
target = targetTransportTile(gm, target);
if (target == null) {
return null;
}
let closestManhattanDistance = Infinity;
let minX = Infinity,
minY = Infinity,