summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-11-15 13:05:18 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2024-11-15 13:05:18 +0000
commit04971bb43cc866cecbcca0ce07d63ea3a3ce3803 (patch)
treebecdfbb1c642a03cbb33e87fd1a69c6fe8b46297 /rules.js
parent4ea61251d418391a0974c8c7e7c80defe741714e (diff)
download1989-dawn-of-freedom-04971bb43cc866cecbcca0ce07d63ea3a3ce3803.tar.gz
Permanently remove securitate after army backs revolution
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 0f83bac..0c677d8 100644
--- a/rules.js
+++ b/rules.js
@@ -4586,7 +4586,9 @@ function vm_adamec() {
}
function vm_army_backs_revolution() {
- game.persistent_events = game.persistent_events.filter(n => n !== C_SECURITATE)
+ 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`)