summaryrefslogtreecommitdiff
path: root/rules.ts
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-04-28 22:41:43 +0200
committerTor Andersson <tor@ccxvii.net>2024-04-28 22:41:58 +0200
commit47bad382d60e7793e3677ceab5dd858ac241fae3 (patch)
tree0f9da3f234dc795ade13c7c4526d29c6781523b9 /rules.ts
parented80dbcad00a20b44e3a08f997b7a54f3fdcd857 (diff)
downloadplantagenet-47bad382d60e7793e3677ceab5dd858ac241fae3.tar.gz
invert montagu logic for my simple brain to understand it.
Diffstat (limited to 'rules.ts')
-rw-r--r--rules.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/rules.ts b/rules.ts
index 31114f8..fb522c3 100644
--- a/rules.ts
+++ b/rules.ts
@@ -6468,9 +6468,9 @@ function can_play_for_trust_not_him() {
for (let vassal of all_vassals) {
if (is_vassal_mustered_with_york_lord(vassal) && get_lord_locale(get_vassal_lord(vassal)) === get_lord_locale(game.command)) {
// Hastings & Salisbury with Alice Montagu capability are immune.
- if ((get_vassal_lord(vassal) !== LORD_SALISBURY || !lord_has_capability(LORD_SALISBURY, AOW_YORK_ALICE_MONTAGU)) && vassal !== VASSAL_HASTINGS) {
- return true
- }
+ if (vassal === VASSAL_HASTINGS && get_vassal_lord(vassal) === LORD_SALISBURY && lord_has_capability(LORD_SALISBURY, AOW_YORK_ALICE_MONTAGU))
+ return false
+ return true
}
}
return false