diff options
author | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-11-30 16:13:11 +0100 |
---|---|---|
committer | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-11-30 16:13:11 +0100 |
commit | b7e7aa9fedaed26830ea961f21f86e303fd2528d (patch) | |
tree | b6610da35ac77a80c97572b021c5a9fdd93a4293 | |
parent | 705c52e7310736e17c152081fa9640dea4ddcc78 (diff) | |
download | votes-for-women-b7e7aa9fedaed26830ea961f21f86e303fd2528d.tar.gz |
fix continue after claimed state with event that has campaigning_action
-rw-r--r-- | rules.js | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1632,6 +1632,7 @@ function end_campaigning_add_cube() { function goto_claim_states_card(us_state) { game.selected_us_state = us_state + game.continue_state = game.state game.state = 'claim_state_card' } @@ -1650,15 +1651,15 @@ states.claim_state_card = { array_remove_item(game.states_draw, c) player_claimed().push(c) log(`Claimed C${c}.`) - let s = game.selected_us_state - delete game.selected_us_state // continue - if (game.vm) { - game.state = "vm_add_cubes" + let s = game.selected_us_state + game.state = game.continue_state + delete game.selected_us_state + delete game.continue_state + if (game.state === "vm_add_cubes") { after_vm_add_cube(s) } else { - game.state = "campaigning_add_cubes" after_campaigning_add_cube(s) } } |