summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-09-30 12:30:44 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-17 13:11:27 +0100
commita0b060839c320d6fa47fbe3b49c349a32aac8180 (patch)
tree38c12e630a13072ffae9d6ada3d5cbf0fbef4d50
parent35dd1731dad24de9f4db0c4437596549bfd4f46d (diff)
downloadrommel-in-the-desert-a0b060839c320d6fa47fbe3b49c349a32aac8180.tar.gz
Fix bug with selecting units for Regroup Move 2.
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index cd2b53e..83fc567 100644
--- a/rules.js
+++ b/rules.js
@@ -3372,7 +3372,7 @@ states.move = {
}
// Select Regroup Move 2
- if (game.to1) {
+ if (game.to2) {
for_each_hex_and_adjacent_hex(game.from2, from => {
if (!has_enemy_unit(from) && from !== game.to2) {
let fastest = fastest_undisrupted_and_unmoved_friendly_unit_in_hex(from)