summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-22 11:54:48 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:39 +0100
commit4c0ff4fedd21597839799625f826cd1c716d7f9d (patch)
tree4ab7199e01b5aae7662e237383e01db98d6e19b0
parent4a08d90a1665cecce6b528f76abd1aece1c9ad52 (diff)
downloadnevsky-4c0ff4fedd21597839799625f826cd1c716d7f9d.tar.gz
Don't select lords to Avoid Battle by default.
-rw-r--r--rules.js11
1 files changed, 1 insertions, 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()