summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js14
1 files changed, 10 insertions, 4 deletions
diff --git a/rules.js b/rules.js
index 1b3821e..defa95e 100644
--- a/rules.js
+++ b/rules.js
@@ -6933,15 +6933,21 @@ function resume_validate_movement() {
resume_validate_promise("validate_movement", end_movement)
}
+function find_movement_deal_partner() {
+ if (should_validate_promise(P_PRAGMATIC, game.power, V_MOVEMENT))
+ return P_PRAGMATIC
+ if (should_validate_promise(P_AUSTRIA, game.power, V_MOVEMENT))
+ return P_AUSTRIA
+ return game.restart.power
+}
+
states.validate_movement = {
dont_snap: true,
inactive: "confirm that promises were kept",
prompt() {
let other = game.restart.power
- if (other === P_PRAGMATIC && game.power === P_PRAGMATIC)
- other = P_AUSTRIA
- else if (other === P_AUSTRIA && game.power === P_AUSTRIA)
- other = P_PRAGMATIC
+ if (other === P_PRAGMATIC || other === P_AUSTRIA)
+ other = find_movement_deal_partner()
prompt("Did " + power_name[other] + " keep their movement promise?")
view.actions.keep = 1
view.actions.break = 1