summaryrefslogtreecommitdiff
path: root/rules.ts
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-04-19 14:34:50 +0200
committerTor Andersson <tor@ccxvii.net>2024-04-19 14:34:50 +0200
commit2a34ba2f65d3c029c2da3a1038491c6c962ac2da (patch)
tree5a884ead8d1de88424efb5e422b5309053e80389 /rules.ts
parentb3a3c53999ddf97ed09370e99f5c31f572e586be (diff)
downloadplantagenet-2a34ba2f65d3c029c2da3a1038491c6c962ac2da.tar.gz
Fix bug with Plan and "Both" player state.
Diffstat (limited to 'rules.ts')
-rw-r--r--rules.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/rules.ts b/rules.ts
index 4bbab3a..743e5bd 100644
--- a/rules.ts
+++ b/rules.ts
@@ -3399,6 +3399,7 @@ states.campaign_plan = {
inactive: "Plan",
prompt(current) {
let plan = current === YORK ? game.plan_y : game.plan_l
+ let my_lords = current === YORK ? all_york_lords : all_lancaster_lords
view.plan = plan
view.actions.plan = []
@@ -3412,7 +3413,7 @@ states.campaign_plan = {
if (count_cards_in_plan(plan, NOBODY) < 7)
gen_action_plan(NOBODY)
- for (let lord of all_friendly_lords()) {
+ for (let lord of my_lords) {
if (is_lord_on_map(lord) && count_cards_in_plan(plan, lord) < 3)
gen_action_plan(lord)
}