summaryrefslogtreecommitdiff
path: root/rules.ts
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-04-19 21:34:52 +0200
committerTor Andersson <tor@ccxvii.net>2024-04-19 21:34:52 +0200
commitb221ffc612610452e7949b9dd72ac25411766109 (patch)
treea84db058ed49bea385ec36884d5a467f27fd4220 /rules.ts
parent0aa6ea882347009b497fd8a13648225a3440b9cd (diff)
downloadplantagenet-b221ffc612610452e7949b9dd72ac25411766109.tar.gz
Fix can_lord_muster initial check.
Diffstat (limited to 'rules.ts')
-rw-r--r--rules.ts11
1 files changed, 2 insertions, 9 deletions
diff --git a/rules.ts b/rules.ts
index 6e4102b..f957f0a 100644
--- a/rules.ts
+++ b/rules.ts
@@ -2730,15 +2730,7 @@ function end_muster() {
}
function can_lord_muster(lord: Lord) {
- // already mustered (except free levy)! TODO : re-check parley henry if ships are levied and at exile
- if (
- get_lord_moved(lord) &&
- (game.levy_flags.thomas_stanley !== 1 || lord !== LORD_HENRY_TUDOR) &&
- (game.levy_flags.my_crown_is_in_my_heart === 0 ||
- lord !== LORD_HENRY_VI ||
- (lord === LORD_HENRY_VI && !can_action_parley_levy())) &&
- (game.levy_flags.gloucester_as_heir === 0 || lord !== LORD_GLOUCESTER_1 || lord !== LORD_GLOUCESTER_2)
- )
+ if (get_lord_moved(lord))
return false
// must be on map
@@ -2985,6 +2977,7 @@ states.muster_lord = {
done() {
set_lord_moved(game.command, 1)
+ game.command = NOBODY
game.state = "muster"
},
}