summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-04-21 18:57:58 +0200
committerTor Andersson <tor@ccxvii.net>2024-04-21 20:06:12 +0200
commitb0c39e52162a6eb305d3250afac5dc076adb7186 (patch)
tree2e56864861b60dca0c0f58cd09bca3d17934b5a5
parent6a4e39749075a5f7f4f45babbba1b8b997de39f8 (diff)
downloadplantagenet-b0c39e52162a6eb305d3250afac5dc076adb7186.tar.gz
Blocked Ford cancels England is my Home.
-rw-r--r--rules.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/rules.ts b/rules.ts
index a4a41d2..8b0ed1b 100644
--- a/rules.ts
+++ b/rules.ts
@@ -2600,7 +2600,8 @@ function disband_lord(lord: Lord, permanently = false) {
if (permanently) {
log(`Removed L${lord}.`)
set_lord_locale(lord, NOWHERE)
- } else if (lord_has_capability(lord, AOW_YORK_ENGLAND_IS_MY_HOME)) {
+ }
+ else if (lord_has_capability(lord, AOW_YORK_ENGLAND_IS_MY_HOME) && !is_event_in_play(EVENT_LANCASTER_BLOCKED_FORD)) {
set_lord_calendar(lord, turn + (extra - data.lords[lord].influence))
log(`Disbanded L${lord} to turn ${current_turn() + 1}.`)
}
@@ -2632,7 +2633,7 @@ function disband_lord(lord: Lord, permanently = false) {
function exile_lord(lord: Lord) {
log("Exiled L" + lord)
disband_lord(lord, false)
- if (lord_has_capability(lord, AOW_YORK_ENGLAND_IS_MY_HOME)) {
+ if (lord_has_capability(lord, AOW_YORK_ENGLAND_IS_MY_HOME) && !is_event_in_play(EVENT_LANCASTER_BLOCKED_FORD)) {
logcap(AOW_YORK_ENGLAND_IS_MY_HOME)
set_lord_calendar(lord, current_turn() + 1)
} else {