summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-11 16:49:41 +0100
committerTor Andersson <tor@ccxvii.net>2023-12-11 20:26:34 +0100
commitc771b0b63ee569bfafee322ac8e1986c71eb35a2 (patch)
tree11059f7d9e2cecd02cf41cd005859580cd767600
parentdad860b5cd90fa8e3d365864ef75ec17d19cc701 (diff)
downloadvotes-for-women-c771b0b63ee569bfafee322ac8e1986c71eb35a2.tar.gz
use card_select when picking card to play for event
Winning Plan and draw 2 play 1 events.
-rw-r--r--rules.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/rules.js b/rules.js
index c938afd..cfb7309 100644
--- a/rules.js
+++ b/rules.js
@@ -3054,7 +3054,7 @@ states.vm_draw_2_play_1_event = {
let can_play = false
for (let c of game.vm.draw) {
if (can_play_event(c)) {
- gen_action_card(c)
+ gen_action("card_select", c)
can_play = true
}
}
@@ -3063,7 +3063,7 @@ states.vm_draw_2_play_1_event = {
gen_action("skip")
},
- card(c) {
+ card_select(c) {
push_undo()
end_play_card(game.played_card)
@@ -3110,7 +3110,7 @@ states.vm_place_any_on_top_of_draw_play = {
event_prompt("Select which card to play as Event.")
for (let c of game.vm.draw) {
if (can_play_event(c)) {
- gen_action_card(c)
+ gen_action("card_select", c)
can_play = true
}
}
@@ -3118,7 +3118,7 @@ states.vm_place_any_on_top_of_draw_play = {
gen_action("skip")
}
},
- card(c) {
+ card_select(c) {
push_undo()
array_remove_item(game.vm.draw, c)
player_hand().push(c)