summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-01-17 17:34:23 +0100
committerTor Andersson <tor@ccxvii.net>2025-01-17 17:34:23 +0100
commitd00fb214c71174f8c2759ceba81164f883a59888 (patch)
treec516d6c8d3d021fb6baf164a4c0aaaf1a023aca4 /rules.js
parent41795a141dd27a3d5ed79ef0b24ce1debde5607c (diff)
downloadtime-of-crisis-d00fb214c71174f8c2759ceba81164f883a59888.tar.gz
improve "can general move" check in britannia with port
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index dc1f83a..4b86a97 100644
--- a/rules.js
+++ b/rules.js
@@ -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