From 338ec04282c5a125448fdb9db39fdb437ab6a216 Mon Sep 17 00:00:00 2001 From: teisuru <31881306+teisuru@users.noreply.github.com> Date: Mon, 4 Sep 2023 12:42:27 +0200 Subject: bugfix sail counting group units for sail action --- rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.3