diff options
author | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-11-23 06:35:14 +0100 |
---|---|---|
committer | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-11-23 06:35:14 +0100 |
commit | bf549eb216df269733cdb2372c61d466203ca636 (patch) | |
tree | bd1750e6de0566d33d82aeb28f53053f70c13c86 /rules.js | |
parent | 03c4a354b436f134371b9b878a9c212772ee60e2 (diff) | |
download | votes-for-women-bf549eb216df269733cdb2372c61d466203ca636.tar.gz |
1918 Pandemic. fix persistency requirement for C96
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -824,6 +824,7 @@ const WAR_IN_EUROPE = find_card("War in Europe") const FIFTEENTH_AMENDMENT = find_card("Fifteenth Amendment") const EIGHTEENTH_AMENDMENT = find_card("Eighteenth Amendment") const SOUTHERN_STRATEGY = find_card("Southern Strategy") +const _1918_PANDEMIC = find_card("1918 Pandemic") function can_play_event(c) { if (game.active === SUF && is_opposition_card(c)) @@ -863,6 +864,10 @@ function can_play_event(c) { if (c === 113 && game.turn < 5) return false + // Suffragist must pay 1 button to play event during 1918 Pandemic + if (game.active === SUF && game.persistent_turn.includes(_1918_PANDEMIC) && !player_buttons()) + return false + return true } @@ -956,6 +961,8 @@ states.operations_phase = { card_event(c) { push_undo() log(`C${c} - Event`) + if (game.active === SUF && game.persistent_turn.includes(_1918_PANDEMIC)) + decrease_player_buttons(1) log_br() goto_event(c) }, @@ -3459,7 +3466,6 @@ CODE[88] = [ // War in Europe CODE[89] = [ // 1918 Pandemic [ vm_remove_congress, 1 ], [ vm_prompt, "For the remainder of the turn, the Suffragist player must spend 1 :button in order to play a card as an event." ], - [ vm_todo ], [ vm_persistent, REST_OF_TURN ], [ vm_return ], ] |