summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-16 13:49:33 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-16 13:49:33 +0200
commit17e9bc3d8086db0e1df49812232139d7dc88666b (patch)
treef98f6c433e524abfe920b2303688bc31b4208b3e
parentc276fc6fc72f735943b9893bd1f31acc08984ffa (diff)
downloadplantagenet-17e9bc3d8086db0e1df49812232139d7dc88666b.tar.gz
Patrick de la Mote check the lord's faction instead of active player!
-rw-r--r--rules.js2
-rw-r--r--rules.ts2
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`)