From 2a34ba2f65d3c029c2da3a1038491c6c962ac2da Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 19 Apr 2024 14:34:50 +0200 Subject: Fix bug with Plan and "Both" player state. --- rules.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rules.ts') 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) } -- cgit v1.2.3