diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-03-23 00:11:24 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-03-23 00:13:13 +0100 |
commit | a3b0f2f2f06b35eebe52016977c3dbd2870673ad (patch) | |
tree | e5ce52b4df82cc8363d342d4e0a15c7c9e00217e | |
parent | 3edb3e8c15ac307c8adc6415408091c5037bad52 (diff) | |
download | land-and-freedom-a3b0f2f2f06b35eebe52016977c3dbd2870673ad.tar.gz |
fix bug in "skip" of swap_card_tableau_hand.
-rw-r--r-- | rules.js | 4 | ||||
-rw-r--r-- | rules.ts | 3 |
2 files changed, 5 insertions, 2 deletions
@@ -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(); }, }; @@ -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(); }, }; |