diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-04-16 19:19:37 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-04-16 19:19:37 +0200 |
commit | 61e1ee7d456597a0e03fdca1ab0949cb81e9ccec (patch) | |
tree | 192cf671d66ab0d0a73a2ab587a686f827be3d30 | |
parent | aa9cebf9518b456b7551efb669d88f621c3e2c30 (diff) | |
download | plantagenet-61e1ee7d456597a0e03fdca1ab0949cb81e9ccec.tar.gz |
Always discard Hastings capability when Hastings is disbanded.
-rw-r--r-- | rules.js | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -1189,7 +1189,6 @@ function muster_vassal(vassal, lord) { } function disband_vassal(vassal) { - // TODO: Hastings here? if (data.vassals[vassal].service > 0) { let new_turn = current_turn() + (6 - data.vassals[vassal].service) set_vassal_lord_and_service(vassal, VASSAL_CALENDAR, new_turn) @@ -1199,6 +1198,10 @@ function disband_vassal(vassal) { set_vassal_lord_and_service(vassal, VASSAL_OUT_OF_PLAY, 0) log(`Disbanded V${vassal}.`) } + if (vassal === VASSAL_HASTINGS) { + discard_card_capability(AOW_YORK_HASTINGS) + logi(`Hastings Discarded`) + } } function pay_vassal(vassal) { @@ -10246,12 +10249,6 @@ states.aragne_3 = { if (!results.success) { disband_vassal(game.who) - - // TODO: move Hastings check into disband_vassal? - if (game.who === VASSAL_HASTINGS) { - discard_card_capability(AOW_YORK_HASTINGS) - logi(`Hastings Discarded`) - } } end_influence_check() |