mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-01 03:22:07 +00:00
fix build error
This commit is contained in:
@@ -121,7 +121,7 @@ export class PlayerExecution implements Execution {
|
||||
|
||||
private surroundedBySamePlayer(cluster: Set<TileRef>): false | Player {
|
||||
const enemies = new Set<number>();
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user