diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-04-18 16:57:06 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-04-18 16:57:06 +0200 |
commit | 524ff9d4e1b5168d0c27702af61c46a5d97e0d7c (patch) | |
tree | 9edb5bb5fa60d383e6470ead079d5dd6762aa519 | |
parent | 5debbfe8cc300c84cb539575e7b4db8d3266f0c3 (diff) | |
download | plantagenet-524ff9d4e1b5168d0c27702af61c46a5d97e0d7c.tar.gz |
Warden of the Marches: Forbid escaping to friendly locale with enemy lords.
-rw-r--r-- | rules.ts | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -7299,7 +7299,7 @@ function can_play_warden_of_the_marches() { // TODO: blocked ford? if (is_north(game.battle.where)) { for (let loc of all_locales) - if (is_north(loc) && loc !== game.battle.where && is_friendly_locale(loc)) + if (is_north(loc) && loc !== game.battle.where && is_friendly_locale(loc) && !has_enemy_lord(loc)) return true } return false @@ -7316,7 +7316,7 @@ states.warden_of_the_marches = { if (game.where === NOWHERE) { view.prompt = "Warden of the Marches: Move any Routed Lancastrians to a Friendly Stronghold in the North." for (let loc of all_locales) - if (is_north(loc) && loc !== game.battle.where && is_friendly_locale(loc)) + if (is_north(loc) && loc !== game.battle.where && is_friendly_locale(loc) && !has_enemy_lord(loc)) gen_action_locale(loc) } else { for (let lord of game.battle.routed) |