summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js14
1 files changed, 11 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index 1bb253f..c605204 100644
--- a/rules.js
+++ b/rules.js
@@ -4811,10 +4811,10 @@ states.levy_muster_lord = {
if (eligible_kings_name()) {
goto_kings_name("Levy Troops")
}
- if (is_event_in_play(EVENT_YORK_THE_COMMONS)) {
+ if (is_event_in_play(EVENT_YORK_THE_COMMONS) && is_york_lord(game.who)) {
push_undo()
game.flags.commons_militia = 2
- game.state = "the_commons"
+ push_state("the_commons")
}
resume_levy_muster_lord()
},
@@ -5046,10 +5046,18 @@ states.the_commons = {
--game.flags.commons_militia
},
done() {
- resume_levy_muster_lord()
+ push_undo()
+ end_the_commons()
+
}
}
+function end_the_commons() {
+ game.flags.commons_militia = 0
+ pop_state()
+ resume_levy_muster_lord()
+}
+
// === CAPABILITY: SOLDIERS OF FORTUNE
states.soldier_of_fortune = {