diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-03 12:54:17 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-03 12:54:17 +0000 |
commit | 56d629eaa2823d7b2d4d498a5360606223f8b723 (patch) | |
tree | 461b1ad27d3741834dc6d36562d4f156652fdc08 | |
parent | a9520ca410a00f0bcbaba948fa34130ca7dd8c75 (diff) | |
download | 1989-dawn-of-freedom-56d629eaa2823d7b2d4d498a5360606223f8b723.tar.gz |
Fix Kiss of Death with Reformer Rehabilitated
-rw-r--r-- | rules.js | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -6069,7 +6069,7 @@ states.vm_dash_for_the_west = { states.vm_play_event_from_discard = { get inactive() { - return `resolve ${clean_name(cards[game.played_card].name)}.` + return `resolve ${clean_name(cards[this_card()].name)}.` }, prompt() { if (game.valid_cards.length === 0) { @@ -6085,6 +6085,7 @@ states.vm_play_event_from_discard = { }, card(card) { push_undo() + log(`C${this_card()}:`) log(`Chose C${card}`) game.vm_event = card game.vm_available_ops = cards[card].ops @@ -6512,9 +6513,14 @@ states.vm_kiss_of_death = { discard() { clear_undo() game.vm_event = discard_card(game.communist_hand) - //Only switch player if a playable non-communist event. Common European Home is not playable here - if (cards[game.vm_event].side !== "C" && event_is_playable(game.vm_event) && game.vm_event !== C_COMMON_EUROPEAN_HOME) { - next_player() + //Change player before checking if event is playable. Common European Home is not playable here + change_player() + // Special check for the Reformer Rehabilitated + if (game.vm_event === C_REFORMER_REHABILITATED && game.dem_tst_position > game.com_tst_position) { + log_side() + game.state = 'vm_kiss_of_death_finish' + } else if (cards[game.vm_event].side !== "C" && event_is_playable(game.vm_event) && game.vm_event !== C_COMMON_EUROPEAN_HOME) { + log_side() game.state = 'vm_kiss_of_death_finish' } else { log('Event does not occur') |