summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-13 00:38:45 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-08 16:36:48 +0100
commit278d1f69408979c83c60f1f4be9feab56a56a365 (patch)
tree9b2d04e8772adea878166131e456274e1959fdc8 /rules.js
parent47b91ab24f6476aea134fff4516e7510e8fdefba (diff)
downloadtable-battles-278d1f69408979c83c60f1f4be9feab56a56a365.tar.gz
morale
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/rules.js b/rules.js
index 5ae8fcb..10200e1 100644
--- a/rules.js
+++ b/rules.js
@@ -2122,10 +2122,7 @@ states.routing = {
if (should_rout_card(c)) {
log(card_name(c) + " routed.")
let p = find_card_owner(c)
- if (data.cards[c].star)
- game.routed[p] = 2
- else
- game.routed[p] = 1
+ game.routed[p] += data.cards[c].morale
} else if (should_retire_card(c)) {
log(card_name(c) + " retired.")
} else {