From 4c0ff4fedd21597839799625f826cd1c716d7f9d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 22 Jan 2023 11:54:48 +0100 Subject: Don't select lords to Avoid Battle by default. --- rules.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/rules.js b/rules.js index bfdccf5..8ea3e36 100644 --- a/rules.js +++ b/rules.js @@ -4832,13 +4832,6 @@ function can_avoid_battle(to, way) { return true } -function select_all_lords(here) { - game.group = [] - for (let lord = first_friendly_lord; lord <= last_friendly_lord; ++lord) - if (get_lord_locale(lord) === here) - set_add(game.group, lord) -} - function goto_avoid_battle() { clear_undo() set_active_enemy() @@ -4851,9 +4844,7 @@ function goto_avoid_battle() { function resume_avoid_battle() { let here = game.march.to if (has_unbesieged_friendly_lord(here)) { - // TODO: select all or no lords? - select_all_lords(here) - // game.group = [] + game.group = [] game.state = "avoid_battle" } else { end_avoid_battle() -- cgit v1.2.3