From 17e9bc3d8086db0e1df49812232139d7dc88666b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 16 May 2024 13:49:33 +0200 Subject: Patrick de la Mote check the lord's faction instead of active player! --- rules.js | 2 +- rules.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index 390ea21..720ec38 100644 --- a/rules.js +++ b/rules.js @@ -5927,7 +5927,7 @@ function use_culverins(lord) { if (game.battle.culverins && set_has(game.battle.culverins, lord)) { let die1 = roll_die(); let die2 = 0; - if (is_event_in_play(EVENT_YORK_PATRICK_DE_LA_MOTE) && game.active === YORK) { + if (is_york_lord(lord) && is_event_in_play(EVENT_YORK_PATRICK_DE_LA_MOTE)) { logevent(EVENT_YORK_PATRICK_DE_LA_MOTE); die2 = roll_die(); logii(`+ B${die1} B${die2} Artillery`); diff --git a/rules.ts b/rules.ts index fdecf5d..d4dd1ed 100644 --- a/rules.ts +++ b/rules.ts @@ -7013,7 +7013,7 @@ function use_culverins(lord: Lord) { if (game.battle.culverins && set_has(game.battle.culverins, lord)) { let die1 = roll_die() let die2 = 0 - if (is_event_in_play(EVENT_YORK_PATRICK_DE_LA_MOTE) && game.active === YORK) { + if (is_york_lord(lord) && is_event_in_play(EVENT_YORK_PATRICK_DE_LA_MOTE)) { logevent(EVENT_YORK_PATRICK_DE_LA_MOTE) die2 = roll_die() logii(`+ B${die1} B${die2} Artillery`) -- cgit v1.2.3