get eaten if surrounded by same player while on lake

This commit is contained in:
Evan
2025-02-20 15:14:29 -08:00
parent 7c4d24034a
commit ee56d68748
+5 -1
View File
@@ -127,8 +127,12 @@ export class PlayerExecution implements Execution {
private surroundedBySamePlayer(cluster: Set<TileRef>): false | Player {
const enemies = new Set<number>();
for (const tile of cluster) {
const isOceanShore = this.mg.isOceanShore(tile);
if (this.mg.isShore(tile) && !isOceanShore) {
continue;
}
if (
this.mg.isOceanShore(tile) ||
isOceanShore ||
this.mg.isOnEdgeOfMap(tile) ||
this.mg.neighbors(tile).some((n) => !this.mg.hasOwner(n))
) {