summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-12-03 12:56:10 +0100
committerTor Andersson <tor@ccxvii.net>2024-12-03 12:56:10 +0100
commit33b88776cf150f196651c05334563c297a98e0f1 (patch)
tree7d5f848a359c5d9a5e80d49a93fdf272fa062d25
parent5d80614b1c0bf1d7cf1c0fe42186e5288cf8e389 (diff)
downloadmaria-33b88776cf150f196651c05334563c297a98e0f1.tar.gz
Fix deal validation prompt between Austria/Pragmatic Army movement.
-rw-r--r--rules.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index a6a64a8..b486834 100644
--- a/rules.js
+++ b/rules.js
@@ -6791,7 +6791,11 @@ states.validate_movement = {
dont_snap: true,
inactive: "confirm that promises were kept",
prompt() {
- let other = current_sequence_of_play().power
+ 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
prompt("Did " + power_name[other] + " keep their movement promise?")
view.actions.keep = 1
view.actions.break = 1