diff options
author | teisuru <31881306+teisuru@users.noreply.github.com> | 2024-02-18 03:58:32 +0100 |
---|---|---|
committer | teisuru <31881306+teisuru@users.noreply.github.com> | 2024-02-18 03:58:32 +0100 |
commit | a53e3470ffa5d82c1a35b05178acd5ae6b56fb78 (patch) | |
tree | c1dfe6ae9e7b90b9abe590958c61a70343d8b1fe /rules.js | |
parent | bb276c4439083834ada25cd9d0bfacf459c4e3fc (diff) | |
download | plantagenet-a53e3470ffa5d82c1a35b05178acd5ae6b56fb78.tar.gz |
fix welsh rebellion
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -3142,12 +3142,12 @@ function goto_lancaster_event_welsh_rebellion() { } if (can_play_remove_troops) { - game.state = "welsh_rebellion_remove_troops" + push_state("welsh_rebellion_remove_troops") game.who = NOBODY game.count = 0 } else if (can_play_remove_favour) { - game.state = "welsh_rebellion_remove_favour" + push_state("welsh_rebellion_remove_favour") game.who = NOBODY game.count = 0 } @@ -3247,6 +3247,10 @@ states.welsh_rebellion_remove_favour = { } function end_welsh_rebellion() { + for (let lord = first_york_lord; lord <= last_york_lord; ++lord) { + if (is_lord_in_wales(lord) && !has_no_unrouted_forces(lord)) + disband_lord(lord, false) + } game.count = 0 game.who = NOBODY end_immediate_event() |