From d9922da4df8dc3c053542cf6392b24910f6fd831 Mon Sep 17 00:00:00 2001 From: Eric Wagoner Date: Sun, 16 Aug 2026 16:21:12 -0400 Subject: [PATCH] Number cards ride along on edge and cell casts The edge-click dispatch attached the tapped number card only for wall attacks, so the warp wand's first use could never receive its charges ("a wand's first use needs a number card" no matter what), and wall of fire silently burned one turn instead of its NUMBER. Cell-target casts had the same gap for duration terrain. The attached number now rides every edge and cell cast. Co-Authored-By: Claude Fable 5 --- packages/web/src/App.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/web/src/App.svelte b/packages/web/src/App.svelte index 54b0961..1fc85db 100644 --- a/packages/web/src/App.svelte +++ b/packages/web/src/App.svelte @@ -391,6 +391,7 @@ dispatch({ type: "cast", instanceId: selectedCard.instanceId, target: { kind: "cell", cell }, + ...(attachedNumber ? { numberInstanceIds: [attachedNumber.instanceId] } : {}), }); clearSelection(); return; @@ -536,11 +537,13 @@ return; } if (!selectedCard || !edgeSelectMode) return; + // The attached number rides along for every edge cast: wand charges, + // wall-of-fire durations, wall attacks alike. dispatch({ type: "cast", instanceId: selectedCard.instanceId, target: { kind: "edge", cell, side }, - ...(attackVsWall && attachedNumber ? { numberInstanceIds: [attachedNumber.instanceId] } : {}), + ...(attachedNumber ? { numberInstanceIds: [attachedNumber.instanceId] } : {}), }); clearSelection(); }