summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorteisuru <31881306+teisuru@users.noreply.github.com>2024-02-18 03:58:32 +0100
committerteisuru <31881306+teisuru@users.noreply.github.com>2024-02-18 03:58:32 +0100
commita53e3470ffa5d82c1a35b05178acd5ae6b56fb78 (patch)
treec1dfe6ae9e7b90b9abe590958c61a70343d8b1fe /rules.js
parentbb276c4439083834ada25cd9d0bfacf459c4e3fc (diff)
downloadplantagenet-a53e3470ffa5d82c1a35b05178acd5ae6b56fb78.tar.gz
fix welsh rebellion
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 5d7283e..63f273c 100644
--- a/rules.js
+++ b/rules.js
@@ -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()