diff --git a/packages/web/src/App.svelte b/packages/web/src/App.svelte index 03f12be..ddd82ea 100644 --- a/packages/web/src/App.svelte +++ b/packages/web/src/App.svelte @@ -313,6 +313,19 @@ clearSelection(); return; } + const meNow = view.players.find((p) => p.id === view.you); + if (!selectedCard && meNow) { + const pos = meNow.position; + const pair = view.dimWarps.find((w) => + (w.a.x === pos.x && w.a.y === pos.y) || (w.b.x === pos.x && w.b.y === pos.y)); + if (pair) { + const dest = pair.a.x === pos.x && pair.a.y === pos.y ? pair.b : pair.a; + if (dest.x === cell.x && dest.y === cell.y) { + dispatch({ type: "warpStep" }); + return; + } + } + } if (selectedCreature) { const creature = view.creatures.find((c) => c.id === selectedCreature); if (creature) {