From ee56d687484131c092599434247b3a036e0e9668 Mon Sep 17 00:00:00 2001 From: Evan Date: Thu, 20 Feb 2025 15:14:29 -0800 Subject: [PATCH] get eaten if surrounded by same player while on lake --- src/core/execution/PlayerExecution.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/execution/PlayerExecution.ts b/src/core/execution/PlayerExecution.ts index 454bc03e4..c2b3163cc 100644 --- a/src/core/execution/PlayerExecution.ts +++ b/src/core/execution/PlayerExecution.ts @@ -127,8 +127,12 @@ export class PlayerExecution implements Execution { private surroundedBySamePlayer(cluster: Set): false | Player { const enemies = new Set(); 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)) ) {