diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-01-17 17:34:23 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-01-17 17:34:23 +0100 |
commit | d00fb214c71174f8c2759ceba81164f883a59888 (patch) | |
tree | c516d6c8d3d021fb6baf164a4c0aaaf1a023aca4 | |
parent | 41795a141dd27a3d5ed79ef0b24ce1debde5607c (diff) | |
download | time-of-crisis-d00fb214c71174f8c2759ceba81164f883a59888.tar.gz |
improve "can general move" check in britannia with port
-rw-r--r-- | rules.js | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1905,8 +1905,13 @@ function can_select_general(id) { if (!has_general_battled(id)) { // Move Army - if (game.mip >= (where === BRITANNIA ? 2 : 1)) - return true + if (where === BRITANNIA && (!has_port(where) || has_used_port(where))) { + if (game.mip >= 2) + return true + } else { + if (game.mip >= 1) + return true + } // Initiate Battle if (game.mip >= 1 && can_general_initiate_battle(where)) return true |