mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-25 22:24:37 +00:00
bugfix: bestShoreDeploymentSource would return null if target was not a shore tile.
call targetTransportTile to get a shore tile
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user