summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js4
1 files 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)