diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-02-11 14:12:47 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-02-11 14:12:47 +0100 |
commit | c074941585f0915f4003cfb9920756d083e8f6c2 (patch) | |
tree | f987c2cd8f94f0ddba57b067906a9ebfa02e6940 /rules.js | |
parent | dcc99c931b22873cfbcec3f7848be1b691e6e76c (diff) | |
download | plantagenet-c074941585f0915f4003cfb9920756d083e8f6c2.tar.gz |
Fix PT trigger check.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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" |