From 82670c87330642fa62b1ebf9597bac5ac60b71a3 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 13 Dec 2024 16:01:14 +0100 Subject: Disable undo button during deal validation. --- rules.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rules.js') 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() -- cgit v1.2.3