From a3b0f2f2f06b35eebe52016977c3dbd2870673ad Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 23 Mar 2025 00:11:24 +0100 Subject: fix bug in "skip" of swap_card_tableau_hand. --- rules.js | 4 +++- rules.ts | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index eb0b138..078024f 100644 --- a/rules.js +++ b/rules.js @@ -1925,7 +1925,9 @@ states.swap_card_tableau_hand = { }, skip() { const faction = get_active_faction(); - game.selected_cards[faction].length = 1; + const { s: selected_at_start } = get_active_node_args(); + game.selected_cards[faction].length = selected_at_start; + ; resolve_active_and_proceed(); }, }; diff --git a/rules.ts b/rules.ts index 98f4f8e..d4ca3d6 100644 --- a/rules.ts +++ b/rules.ts @@ -2347,7 +2347,8 @@ states.swap_card_tableau_hand = { }, skip() { const faction = get_active_faction(); - game.selected_cards[faction].length = 1; + const { s: selected_at_start } = get_active_node_args(); + game.selected_cards[faction].length = selected_at_start;; resolve_active_and_proceed(); }, }; -- cgit v1.2.3