summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-12-29 11:08:08 +0100
committerTor Andersson <tor@ccxvii.net>2025-01-15 16:19:21 +0100
commit97a65af76ed3fa247a8415a45e93b2c3dec59e5c (patch)
tree547aa1dc667bf3ddd334b94532459453760dabeb
parente270339370b9175c192c019630335900327d7ec3 (diff)
downloadmaria-master.tar.gz
Check for instant victory immediately after imperial election.HEADmaster
-rw-r--r--rules.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 424aa0b..b183bab 100644
--- a/rules.js
+++ b/rules.js
@@ -6193,6 +6193,10 @@ function end_imperial_election() {
game.flags |= F_EMPEROR_FRANCE
}
game.flags &= ~F_IMPERIAL_ELECTION
+
+ if (check_instant_victory())
+ return
+
goto_start_turn()
}