summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-06-28 20:23:21 +0200
committerTor Andersson <tor@ccxvii.net>2023-06-28 20:23:21 +0200
commit9a33cb53a787ecfd24277469b3dfc334947be6e5 (patch)
treeb4602fc449bff665294f454d5f6b740ccb00fdbd
parent323a856f7f6863ef7beb3c1877d54820e5909c49 (diff)
downloadred-flag-over-paris-9a33cb53a787ecfd24277469b3dfc334947be6e5.tar.gz
Clear undo when playing opponent's event during Final Crisis.
-rw-r--r--rules.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 1936faf..6442101 100644
--- a/rules.js
+++ b/rules.js
@@ -2382,10 +2382,12 @@ states.final_crisis_events = {
discard_card(c)
game.what = c
if (game.active === VERSAILLES && is_commune_card(c)) {
+ clear_undo()
game.active = COMMUNE
game.state = "final_crisis_opponent_event"
}
else if (game.active === COMMUNE && is_versailles_card(c)) {
+ clear_undo()
game.active = VERSAILLES
game.state = "final_crisis_opponent_event"
}