diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-03-06 11:20:10 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-03-06 11:32:25 +0100 |
commit | c7372930b82c6f17cd0d48e5d477ba8529ad5338 (patch) | |
tree | f6725b9630cf9b0dc2419daf8449661c82893ee3 | |
parent | f9d756c2f760cb193eb5d6bddfb5a3dda58fe4b7 (diff) | |
download | nevsky-c7372930b82c6f17cd0d48e5d477ba8529ad5338.tar.gz |
Allow playing Curia during Levy.
Don't skip Pay phase if Heinrich could be played.
-rw-r--r-- | rules.js | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -2774,7 +2774,15 @@ function count_set_bits(x) { } function can_play_heinrich_sees_the_curia() { - return is_lord_on_map(LORD_HEINRICH) + return ( + is_lord_on_map(LORD_HEINRICH) && ( + is_lord_on_map(LORD_ANDREAS) || + is_lord_on_map(LORD_HERMANN) || + is_lord_on_map(LORD_KNUD_ABEL) || + is_lord_on_map(LORD_RUDOLF) || + is_lord_on_map(LORD_YAROSLAV) + ) + ) } states.heinrich_sees_the_curia = { @@ -10104,6 +10112,11 @@ function can_pay_lord(lord) { } function has_friendly_lord_who_may_be_paid() { + if (game.active === TEUTONS) { + // Open a window to play Heinrich sees the Curia. + if (could_play_card(EVENT_TEUTONIC_HEINRICH_SEES_THE_CURIA) && can_play_heinrich_sees_the_curia()) + return true + } for (let lord = first_friendly_lord; lord <= last_friendly_lord; ++lord) if (is_lord_on_map(lord) && can_pay_lord(lord)) return true @@ -10269,8 +10282,7 @@ states.disband = { prompt() { view.prompt = "Disband: You must Disband Lords at their Service limit." - if (is_campaign_phase()) - prompt_held_event() + prompt_held_event() let done = true for (let lord = first_friendly_lord; lord <= last_friendly_lord; ++lord) { |