summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-12-13 16:01:14 +0100
committerTor Andersson <tor@ccxvii.net>2024-12-13 16:01:14 +0100
commit82670c87330642fa62b1ebf9597bac5ac60b71a3 (patch)
treedf8fd28e3bc6eaa9dfc78e9ac1b61e229089f72c /rules.js
parent219d37c6dbddd2fc0ad59088e00b8be464263a04 (diff)
downloadmaria-82670c87330642fa62b1ebf9597bac5ac60b71a3.tar.gz
Disable undo button during deal validation.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index defa95e..1eaa545 100644
--- a/rules.js
+++ b/rules.js
@@ -6839,6 +6839,7 @@ states.validate_politics = {
prompt("Did " + power_name[other] + " keep their politics promise?")
view.actions.keep = 1
view.actions.break = 1
+ view.actions.undo = 0
},
keep() {
resume_validate_politics()
@@ -6887,6 +6888,7 @@ states.validate_hussars = {
prompt("Did " + power_name[other] + " keep their hussar promise?")
view.actions.keep = 1
view.actions.break = 1
+ view.actions.undo = 0
},
keep() {
resume_validate_hussars()
@@ -6951,6 +6953,7 @@ states.validate_movement = {
prompt("Did " + power_name[other] + " keep their movement promise?")
view.actions.keep = 1
view.actions.break = 1
+ view.actions.undo = 0
},
keep() {
resume_validate_movement()
@@ -6995,6 +6998,7 @@ states.validate_retreat = {
prompt("Did " + power_name[other] + " keep their retreat promise?")
view.actions.keep = 1
view.actions.break = 1
+ view.actions.undo = 0
},
keep() {
resume_validate_retreat()