From a53e3470ffa5d82c1a35b05178acd5ae6b56fb78 Mon Sep 17 00:00:00 2001 From: teisuru <31881306+teisuru@users.noreply.github.com> Date: Sun, 18 Feb 2024 03:58:32 +0100 Subject: fix welsh rebellion --- rules.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'rules.js') 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() -- cgit v1.2.3