diff --git a/packages/engine/src/game.ts b/packages/engine/src/game.ts index 87a5ea4..5d082c3 100644 --- a/packages/engine/src/game.ts +++ b/packages/engine/src/game.ts @@ -3734,12 +3734,19 @@ function dreadDistance(board: AssembledBoard, a: Cell, b: Cell): number { } function fearRepels(state: GameState, moverId: PlayerId | null, from: Cell, to: Cell): boolean { - const board = boardView(state); + // The wrap joined the measure at rev 32; older ledgers were recorded + // under the flat diamond and replay so. + const wraps = (state.config.deckRev ?? 1) >= 32; + const board = wraps ? boardView(state) : null; for (const other of state.players) { if (!other.alive || other.id === moverId) continue; if (sustainedOn(state, other.id, "fear").length === 0) continue; - const d = dreadDistance(board, other.position, to); - const dBefore = dreadDistance(board, other.position, from); + const d = board + ? dreadDistance(board, other.position, to) + : Math.abs(other.position.x - to.x) + Math.abs(other.position.y - to.y); + const dBefore = board + ? dreadDistance(board, other.position, from) + : Math.abs(other.position.x - from.x) + Math.abs(other.position.y - from.y); if (d <= 3 && d < dBefore) return true; } return false;