diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-04-19 14:34:50 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-04-19 14:34:50 +0200 |
commit | 2a34ba2f65d3c029c2da3a1038491c6c962ac2da (patch) | |
tree | 5a884ead8d1de88424efb5e422b5309053e80389 /rules.ts | |
parent | b3a3c53999ddf97ed09370e99f5c31f572e586be (diff) | |
download | plantagenet-2a34ba2f65d3c029c2da3a1038491c6c962ac2da.tar.gz |
Fix bug with Plan and "Both" player state.
Diffstat (limited to 'rules.ts')
-rw-r--r-- | rules.ts | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) } |