From ecbf467fffc2678b9aef81d7875622aa7e5c0ea3 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 14 Sep 2022 11:06:15 +0200 Subject: Count own steps in battle! --- rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index 99a31cc..a7f28fe 100644 --- a/rules.js +++ b/rules.js @@ -976,7 +976,7 @@ function has_friendly_units_in_battle() { function count_normal_steps_in_battle() { let steps = [ 0, 0, 0, 0 ] - for_each_undisrupted_enemy_unit_in_hex(game.battle, u => { + for_each_undisrupted_friendly_unit_in_hex(game.battle, u => { if (!is_elite_unit(u)) if (!is_unit_retreating(u)) steps[unit_class[u]] += unit_steps(u) @@ -986,7 +986,7 @@ function count_normal_steps_in_battle() { function count_elite_steps_in_battle() { let steps = [ 0, 0, 0, 0 ] - for_each_undisrupted_enemy_unit_in_hex(game.battle, u => { + for_each_undisrupted_friendly_unit_in_hex(game.battle, u => { if (is_elite_unit(u)) if (!is_unit_retreating(u)) steps[unit_class[u]] += unit_steps(u) -- cgit v1.2.3