diff --git a/src/core/execution/PlayerExecution.ts b/src/core/execution/PlayerExecution.ts index a6775d812..59a69386c 100644 --- a/src/core/execution/PlayerExecution.ts +++ b/src/core/execution/PlayerExecution.ts @@ -121,7 +121,7 @@ export class PlayerExecution implements Execution { private surroundedBySamePlayer(cluster: Set): false | Player { const enemies = new Set(); - for (const ref of cluster) { + for (const tile of cluster) { if ( this.mg.isOceanShore(tile) || this.mg.isOnEdgeOfMap(tile) || @@ -130,7 +130,7 @@ export class PlayerExecution implements Execution { return false; } this.mg - .neighbors(ref) + .neighbors(tile) .filter((n) => this.mg.ownerID(n) != this.player.smallID()) .forEach((p) => enemies.add(this.mg.ownerID(p))); if (enemies.size != 1) {