summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-22 12:20:36 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-22 12:20:44 +0200
commit5a431ab673874228584089fc3e40b38c8b3c883c (patch)
treeab6bf7d6b268bb316a76a2536eda23f4089b697e
parentffc1be37ee91061c4557dcce054b6e6676375891 (diff)
downloadplantagenet-5a431ab673874228584089fc3e40b38c8b3c883c.tar.gz
add undo step for heralds action
-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 3678135..963f758 100644
--- a/rules.js
+++ b/rules.js
@@ -9651,6 +9651,7 @@ function can_action_heralds() {
return false;
}
function goto_heralds() {
+ push_undo();
game.state = "heralds";
}
states.heralds = {
diff --git a/rules.ts b/rules.ts
index a6bf7e5..69d81ef 100644
--- a/rules.ts
+++ b/rules.ts
@@ -11200,6 +11200,7 @@ function can_action_heralds() {
}
function goto_heralds() {
+ push_undo()
game.state = "heralds"
}