diff options
-rw-r--r-- | events.txt | 4 | ||||
-rw-r--r-- | rules.js | 13 |
2 files changed, 15 insertions, 2 deletions
@@ -525,7 +525,11 @@ endif CARD 70 - Securitate* # The Democrat must reveal his battlecards at the start of the Power Struggles in Romania. This event remains in effect until cancelled by Army Backs the Revolution event. +if !game.persistent_events.includes(C_ARMY_BACKS_REVOLUTION) securitate +else +army_block +endif CARD 71 - Kiss of Death* @@ -323,7 +323,7 @@ function start_game() { // Set variable event cards where event is playable at start of game - game.playable_cards = [C_THE_WALL, C_GORBACHEV_CHARMS_THE_WEST, C_HONECKER, C_COMMON_EUROPEAN_HOME, C_SECURITATE, C_MALTA_SUMMIT] + game.playable_cards = [C_THE_WALL, C_GORBACHEV_CHARMS_THE_WEST, C_HONECKER, C_COMMON_EUROPEAN_HOME, C_MALTA_SUMMIT] draw_cards(game.strategy_deck, game.democrat_hand, game.communist_hand, game.dem_hand_limit, game.com_hand_limit) @@ -4633,12 +4633,17 @@ function vm_army_backs_revolution() { if (game.persistent_events.includes(C_SECURITATE)) { permanently_remove(C_SECURITATE) } - game.playable_cards = game.playable_cards.filter(n => n !== C_SECURITATE) add_to_persistent_events(C_ARMY_BACKS_REVOLUTION) logi(`C${C_SECURITATE} no longer has any effect`) vm_next() } +function vm_army_block() { + permanently_remove(C_SECURITATE) + logi(`Has no effect after C${C_ARMY_BACKS_REVOLUTION}`) + vm_next() +} + function vm_austria_hungary_border_reopened() { add_to_persistent_events(C_AUSTRIA_HUNGARY_BORDER_REOPENED) logi(`For the remainder of the turn, cards played by the Democrat have +1 Ops value if all Operations Points are used in East Germany`) @@ -8479,7 +8484,11 @@ CODE[69] = [ // Systematization* ] CODE[70] = [ // Securitate* + [ vm_if, ()=>!game.persistent_events.includes(C_ARMY_BACKS_REVOLUTION) ], [ vm_securitate ], + [ vm_else ], + [ vm_army_block ], + [ vm_endif ], [ vm_return ], ] |