diff options
-rw-r--r-- | play.js | 6 | ||||
-rw-r--r-- | rules.js | 3 |
2 files changed, 6 insertions, 3 deletions
@@ -194,7 +194,11 @@ function pack4_get(word, n) { } function is_lord_besieged(lord) { - return pack1_get(view.pieces.besieged, lord) + let besieged = pack1_get(view.pieces.besieged, lord) + // show sallying lords as not besieged + if (view.battle && view.battle.reserves.includes(lord)) + return false + return besieged } function is_lord_moved(lord) { @@ -1,7 +1,6 @@ "use strict" // TODO: Strike hit overflow -// TODO: Ambush - battle // TODO: Ransom - sack // TODO: Ransom - battle @@ -4406,7 +4405,7 @@ function toggle_legate_selected() { function release_besieged_lords(loc) { for (let lord = 0; lord < lord_count; ++lord) - if (get_lord_locale(loc) === loc && is_lord_besieged(lord)) + if (get_lord_locale(lord) === loc && is_lord_besieged(lord)) set_lord_besieged(lord, 0) } |