summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-02-07 15:51:45 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:39 +0100
commitb767739df595f05185b5e14a8c223fa55ef07df9 (patch)
tree515a9168a01262f169bf6b867a356fbaa444d521 /rules.js
parent4bd6a5a1144af3392c73c1e98254cd3ae83c7cc0 (diff)
downloadnevsky-b767739df595f05185b5e14a8c223fa55ef07df9.tar.gz
Prompt "discard" if capability cannot be assigned at first Arts of War.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js7
1 files 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