summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-05-06 11:38:21 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-06 11:38:35 +0200
commit0cfed806d5bfd949169ddefc4552712729787dc7 (patch)
treec5dfdb2c3845120c90bcffb01ca88876c19fe1d5
parentedb9a7a17591695500b41c14003b492073b10a68 (diff)
downloadandean-abyss-0cfed806d5bfd949169ddefc4552712729787dc7.tar.gz
Add undo to 7th special forces.
-rw-r--r--rules.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 980fb03..47d45c4 100644
--- a/rules.js
+++ b/rules.js
@@ -6063,6 +6063,7 @@ states.sabotage_7th_sf = {
view.actions.skip = 1
},
space(s) {
+ push_undo()
if (is_loc(s)) {
logi("Removed Sabotage from S" + s)
remove_sabotage(s)
@@ -6085,6 +6086,7 @@ states.sabotage_7th_sf_done = {
view.actions.done = 1
},
done() {
+ clear_undo()
goto_resources_phase()
},
}