From 292ccdcd93b1ec6f56dd2c238858627ec777b7af Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 13 Aug 2024 11:27:01 +0200 Subject: clear undo after resolving events in arts of war --- rules.js | 1 + rules.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/rules.js b/rules.js index 5512a1c..623f4ad 100644 --- a/rules.js +++ b/rules.js @@ -1839,6 +1839,7 @@ function goto_levy_arts_of_war() { resume_levy_arts_of_war(); } function resume_levy_arts_of_war() { + clear_undo(); // we may reveal the next random card here game.state = "levy_arts_of_war"; if (game.arts_of_war.length === 0) end_levy_arts_of_war(); diff --git a/rules.ts b/rules.ts index 7dc9f9a..267b3cb 100644 --- a/rules.ts +++ b/rules.ts @@ -2352,6 +2352,7 @@ function goto_levy_arts_of_war() { } function resume_levy_arts_of_war() { + clear_undo() // we may reveal the next random card here game.state = "levy_arts_of_war" if (game.arts_of_war.length === 0) end_levy_arts_of_war() -- cgit v1.2.3