summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTroy Nordine <tdnordine@gmail.com>2023-10-09 15:21:23 -0500
committerTor Andersson <tor@ccxvii.net>2023-12-10 18:16:55 +0100
commit4092bbe6ed55bd05c311eb33d07384594461793a (patch)
tree0d8205174ecee5de4ededfe1923de84edb08fdeb /rules.js
parentd9b4d320428b96de7068557e06258567cf7ac4df (diff)
downloadplantagenet-4092bbe6ed55bd05c311eb33d07384594461793a.tar.gz
Fixed unit selection in battle.
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 dc0198b..89fe243 100644
--- a/rules.js
+++ b/rules.js
@@ -5573,7 +5573,7 @@ function goto_assign_hits() {
for (let pos of game.battle.engagements[0]) {
let lord = game.battle.array[pos]
if (is_friendly_lord(lord)) {
- found = lord
+ found = pos
++count
}
}