diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-05-16 13:49:33 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-05-16 13:49:33 +0200 |
commit | 17e9bc3d8086db0e1df49812232139d7dc88666b (patch) | |
tree | f98f6c433e524abfe920b2303688bc31b4208b3e | |
parent | c276fc6fc72f735943b9893bd1f31acc08984ffa (diff) | |
download | plantagenet-17e9bc3d8086db0e1df49812232139d7dc88666b.tar.gz |
Patrick de la Mote check the lord's faction instead of active player!
-rw-r--r-- | rules.js | 2 | ||||
-rw-r--r-- | rules.ts | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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`); @@ -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`) |