summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/rules.js b/rules.js
index 4121260..e4286de 100644
--- a/rules.js
+++ b/rules.js
@@ -944,14 +944,12 @@ function count_group_ships() {
}
function count_group_assets(type, group = game.group) {
- let m = 0
let n = 0
for (let lord of group) {
n += get_lord_assets(lord, type)
- if ((game.state === 'command' || game.state === 'march_laden') && lord_has_capability(lord, AOW_LANCASTER_HAY_WAINS) && type === CART)
- m = get_lord_assets(lord, CART)
- n += m
- }
+ if ((game.state === "command" || game.state === "march_laden") && lord_has_capability(lord, AOW_LANCASTER_HAY_WAINS) && type === CART)
+ n += get_lord_assets(lord, CART)
+ }
return n
}