From 7f82aa47e0f324d43c765dad5b3de27e94c849e3 Mon Sep 17 00:00:00 2001 From: Eric Wagoner Date: Sat, 29 Aug 2026 22:36:04 -0400 Subject: [PATCH] Auto-grab asks before pocketing your own treasure Walking off a square holding your own chest is the capture clause's favorite setup, so the end-turn caution now names it before the auto-grab preference takes it. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_015RCWSTnb1KYTPyL4GmhGnF --- packages/web/src/App.svelte | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/web/src/App.svelte b/packages/web/src/App.svelte index 5211342..291d631 100644 --- a/packages/web/src/App.svelte +++ b/packages/web/src/App.svelte @@ -1045,6 +1045,13 @@ here !== cellKey(me.home)) { reasons.push(`a treasure lies at your feet, un-grabbed`); } + // Auto-grab about to pocket your OWN chest: carrying it does not + // score and bares it to capture, so that walk-off asks first. + if (autoWillGrab && !me.carriedTreasureId && !view.turn.actionsEnded && + !weakened && !view.gluedCells[here] && !safed && here !== cellKey(me.home) && + treasuresHere[0]!.owner === view.you) { + reasons.push("your OWN treasure lies underfoot — ending the turn grabs it and carries it along"); + } // The draw picker is sticky: a 0 or 1 chosen turns ago quietly starves. const drawRoom = Math.min(2, room); if (drawCount < drawRoom) {