summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-07-15 23:24:39 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:19:39 +0100
commit35089a2fc51cac2232ca4376037ec4ef2301da81 (patch)
tree125f585be50068edb127e11d24b8b81d38263e1f
parentadcd72eeb4691c268b5788fd5d1d506ac2341602 (diff)
downloadcrusader-rex-35089a2fc51cac2232ca4376037ec4ef2301da81.tar.gz
crusader: Fix wrong active when checking main attack regrouping at start.
-rw-r--r--rules.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 055818b..93df784 100644
--- a/rules.js
+++ b/rules.js
@@ -2357,6 +2357,7 @@ function goto_combat_round(new_combat_round) {
let was_contested = is_contested_battle_field();
+ game.active = game.attacker[game.where];
if (game.combat_round === 1 && count_friendly_in_field_excluding_reserves(game.where) === 0) {
log("Combat round skipped because main attack regrouped away.");
console.log("MAIN ATTACK REGROUPED AWAY, SKIP ROUND 1");