From c074941585f0915f4003cfb9920756d083e8f6c2 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 11 Feb 2024 14:12:47 +0100 Subject: Fix PT trigger check. --- rules.js | 7 +++++-- 1 file 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" -- cgit v1.2.3