From bedb302c774a3318319524fe2aa6160dc62496e5 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 12 Nov 2024 00:36:07 +0100 Subject: Don't shifting saxony when it's capped. --- rules.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 194a38c..599c4d7 100644 --- a/rules.js +++ b/rules.js @@ -2275,6 +2275,7 @@ states.supply_done = { function end_supply() { if (game.count > 0 && should_saxony_shift_after_supply(coop_major_power(game.power))) { + set_active_to_power(P_AUSTRIA) game.state = "saxony_shift_supply" return } @@ -5043,13 +5044,17 @@ function should_shift_saxony_after_battle(n) { if (is_two_player() && game.loser_power === P_FRANCE && is_bohemia_space(game.attacker)) return true } + return false } function should_saxony_shift_after_supply(pow) { - if (pow === P_PRUSSIA) - return true - if (is_two_player() && pow === P_FRANCE) - return true + if (game.saxony < 5) { + if (pow === P_PRUSSIA) + return true + if (is_two_player() && pow === P_FRANCE) + return true + } + return false } states.saxony_shift_battle = { -- cgit v1.2.3