summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-03-23 00:11:24 +0100
committerTor Andersson <tor@ccxvii.net>2025-03-23 00:13:13 +0100
commita3b0f2f2f06b35eebe52016977c3dbd2870673ad (patch)
treee5ce52b4df82cc8363d342d4e0a15c7c9e00217e
parent3edb3e8c15ac307c8adc6415408091c5037bad52 (diff)
downloadland-and-freedom-a3b0f2f2f06b35eebe52016977c3dbd2870673ad.tar.gz
fix bug in "skip" of swap_card_tableau_hand.
-rw-r--r--rules.js4
-rw-r--r--rules.ts3
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();
},
};