summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-02-11 14:12:47 +0100
committerTor Andersson <tor@ccxvii.net>2024-02-11 14:12:47 +0100
commitc074941585f0915f4003cfb9920756d083e8f6c2 (patch)
treef987c2cd8f94f0ddba57b067906a9ebfa02e6940 /rules.js
parentdcc99c931b22873cfbcec3f7848be1b691e6e76c (diff)
downloadplantagenet-c074941585f0915f4003cfb9920756d083e8f6c2.tar.gz
Fix PT trigger check.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 0b47c40..0eae6f8 100644
--- a/rules.js
+++ b/rules.js
@@ -6528,9 +6528,12 @@ function goto_parliaments_truce() {
// We don't allow the active player to cancel an intercept -- if they want to cancel
// an interception, they should have played the event before marching.
+ let here = get_lord_locale(game.command)
if (
- (game.active === YORK && could_play_card(EVENT_LANCASTER_PARLIAMENTS_TRUCE)) ||
- (game.active === LANCASTER && could_play_card(EVENT_YORK_PARLIAMENTS_TRUCE))
+ has_enemy_lord(here) && (
+ (game.active === YORK && could_play_card(EVENT_LANCASTER_PARLIAMENTS_TRUCE)) ||
+ (game.active === LANCASTER && could_play_card(EVENT_YORK_PARLIAMENTS_TRUCE))
+ )
) {
set_active_enemy()
game.state = "parliaments_truce"