summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-08-13 11:27:01 +0200
committerTor Andersson <tor@ccxvii.net>2024-08-13 11:28:34 +0200
commit292ccdcd93b1ec6f56dd2c238858627ec777b7af (patch)
tree057284b71c41433d3be4d219032e3f2925a4e640
parent136ba8e37f786d3c1ccf215a1589c8d083cc9762 (diff)
downloadplantagenet-292ccdcd93b1ec6f56dd2c238858627ec777b7af.tar.gz
clear undo after resolving events in arts of war
-rw-r--r--rules.js1
-rw-r--r--rules.ts1
2 files changed, 2 insertions, 0 deletions
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()