diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-04-28 22:41:43 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-04-28 22:41:58 +0200 |
commit | 47bad382d60e7793e3677ceab5dd858ac241fae3 (patch) | |
tree | 0f9da3f234dc795ade13c7c4526d29c6781523b9 /rules.ts | |
parent | ed80dbcad00a20b44e3a08f997b7a54f3fdcd857 (diff) | |
download | plantagenet-47bad382d60e7793e3677ceab5dd858ac241fae3.tar.gz |
invert montagu logic for my simple brain to understand it.
Diffstat (limited to 'rules.ts')
-rw-r--r-- | rules.ts | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |