diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-12-25 12:25:01 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-12-25 12:26:13 +0100 |
commit | 102f18e2c48e513e8172d85a19145d9a1bd769a4 (patch) | |
tree | a0ff59e970142c08fb0b455d2537dd945df21c97 | |
parent | 051f7763f3b2eec8ab09c429afe8dc8c47b40550 (diff) | |
download | maria-102f18e2c48e513e8172d85a19145d9a1bd769a4.tar.gz |
fix retroactive conquest austria/prags
-rw-r--r-- | rules.js | 24 |
1 files changed, 21 insertions, 3 deletions
@@ -4427,12 +4427,30 @@ function apply_retroactive_conquest(conq, major) { function goto_retroactive_conquest() { delete game.combat let conq = [] - if (is_two_player() && !is_intro() && (game.power === P_PRAGMATIC || game.power === P_AUSTRIA)) { - apply_retroactive_conquest(conq, P_AUSTRIA) - apply_retroactive_conquest(conq, P_PRAGMATIC) + + if (!is_intro()) { + if (is_two_player()) { + if (game.power === P_AUSTRIA) { + // combined combat phase + apply_retroactive_conquest(conq, P_AUSTRIA) + apply_retroactive_conquest(conq, P_PRAGMATIC) + } else { + apply_retroactive_conquest(conq, game.power) + } + } else { + if (game.power === P_AUSTRIA) { + // wait until pragmatic has also finished combat + } else if (game.power === P_PRAGMATIC) { + apply_retroactive_conquest(conq, P_AUSTRIA) + apply_retroactive_conquest(conq, P_PRAGMATIC) + } else { + apply_retroactive_conquest(conq, game.power) + } + } } else { apply_retroactive_conquest(conq, game.power) } + log_conquest(conq) next_sequence_of_play() } |