diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-04-16 18:18:46 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-04-16 18:18:46 +0200 |
commit | 0ef50f6dc9393af6af12cb180dc28eda0ec05f81 (patch) | |
tree | 3e4aa5a795c742917c6ac421bfd33972d0dc09f4 /rules.js | |
parent | 1162e1624b5a1bb6be4e69d942c619a8f749895e (diff) | |
download | plantagenet-0ef50f6dc9393af6af12cb180dc28eda0ec05f81.tar.gz |
Fix "Tudor Banners".
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -10437,16 +10437,11 @@ function tudor_banner_eligible() { return true } } - else - return false + return false } function goto_lancaster_event_tudor_banners() { - let can_play = false if (tudor_banner_eligible()) { - can_play = true - } - if (can_play) { game.state = "tudor_banners" game.who = NOBODY } else { @@ -10459,13 +10454,15 @@ states.tudor_banners = { inactive: "Tudor banners", prompt() { view.prompt = `Select locales adjacent to Henry to make them Lancastrian` + let done = true for (let next of data.locales[get_lord_locale(LORD_HENRY_TUDOR)].adjacent) { if (!has_enemy_lord(next) && !has_favourl_marker(next)) { gen_action_locale(next) - } else { - view.actions.done = 1 + done = false } } + if (done) + view.actions.done = 1 }, locale(loc) { push_undo() |