summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorteisuru <31881306+teisuru@users.noreply.github.com>2023-09-04 12:42:27 +0200
committerTor Andersson <tor@ccxvii.net>2023-12-10 18:16:55 +0100
commit338ec04282c5a125448fdb9db39fdb437ab6a216 (patch)
treee31652ed68cc14e94a1e65ab30f19a60d2b9cb5d /rules.js
parent5e710f5d6fa3fa9d8bfd1c518137e9235fb367b7 (diff)
downloadplantagenet-338ec04282c5a125448fdb9db39fdb437ab6a216.tar.gz
bugfix sail
counting group units for sail action
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 09738a7..2356081 100644
--- a/rules.js
+++ b/rules.js
@@ -3552,7 +3552,7 @@ function drop_cart(lord) {
function has_enough_available_ships_for_army() {
let ships = count_group_ships()
- let army = count_lord_all_forces()
+ let army = count_lord_all_forces(game.group)
let needed_ships= army/6
return needed_ships <= ships
}