From b767739df595f05185b5e14a8c223fa55ef07df9 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 7 Feb 2023 15:51:45 +0100 Subject: Prompt "discard" if capability cannot be assigned at first Arts of War. --- rules.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index ef0eda3..b3dd690 100644 --- a/rules.js +++ b/rules.js @@ -3206,7 +3206,6 @@ states.levy_arts_of_war_first = { view.prompt = `Arts of War: No Capability.` view.actions.discard = 1 } else if (data.cards[c].this_lord) { - view.prompt = `Arts of War: Assign ${data.cards[c].capability} to a Lord.` let discard = true for (let lord of data.cards[c].lords) { if (is_lord_on_map(lord) && !lord_has_capability(lord, c)) { @@ -3214,8 +3213,12 @@ states.levy_arts_of_war_first = { discard = false } } - if (discard) + if (discard) { + view.prompt = `Arts of War: Discard ${data.cards[c].capability}.` view.actions.discard = 1 + } else { + view.prompt = `Arts of War: Assign ${data.cards[c].capability} to a Lord.` + } } else { view.prompt = `Arts of War: Deploy ${data.cards[c].capability}.` view.actions.deploy = 1 -- cgit v1.2.3