summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-21 10:37:49 +0100
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-21 10:37:49 +0100
commit02943b220c1a49ae8a3816814d3c3866df3d2be7 (patch)
tree98bb69be5dde7b44cac47fcf1f6b6d850157a6ef
parent29b4abe3c1b6e99bf60bb25cff24b3783968d1ea (diff)
downloadvotes-for-women-02943b220c1a49ae8a3816814d3c3866df3d2be7.tar.gz
campaigning action
-rw-r--r--rules.js15
1 files changed, 10 insertions, 5 deletions
diff --git a/rules.js b/rules.js
index 974bc42..446424e 100644
--- a/rules.js
+++ b/rules.js
@@ -1148,7 +1148,10 @@ states.campaigning_assign = {
done() {
delete game.selected_campaigner
delete game.campaigning
- end_play_card(game.played_card)
+ if (game.vm)
+ vm_next()
+ else
+ end_play_card(game.played_card)
}
}
@@ -1778,10 +1781,12 @@ function vm_discard_persistent() {
}
function vm_campaigning_action() {
- // TODO
- // ASSERT
- log("TODO Campaigning Action")
- vm_next()
+ if (has_player_active_campaigners()) {
+ log("Campaigning Action")
+ goto_campaigning(game.played_card)
+ } else {
+ vm_next()
+ }
}
function vm_todo() {