summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-02-14 00:19:15 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:40 +0100
commit61c16c14e65695d8f1c7808f29948eac94975a6b (patch)
tree2d2edfcf6b30b3b137e4f951a5ad5d2c3bbb9956
parentb52fcfbe8ae88f9fc224fffb1db7f083b7591322 (diff)
downloadnevsky-61c16c14e65695d8f1c7808f29948eac94975a6b.tar.gz
Don't allow assigning duplicate capabilities during first Arts of War.
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index b26980e..df37ad6 100644
--- a/rules.js
+++ b/rules.js
@@ -3208,7 +3208,7 @@ states.levy_arts_of_war_first = {
} else if (data.cards[c].this_lord) {
let discard = true
for (let lord of data.cards[c].lords) {
- if (is_lord_on_map(lord) && !lord_has_capability(lord, c)) {
+ if (is_lord_on_map(lord) && !lord_already_has_capability(lord, c)) {
gen_action_lord(lord)
discard = false
}