summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-07-08 11:42:49 +0200
committerTor Andersson <tor@ccxvii.net>2023-07-08 11:42:49 +0200
commit9d68a413f9d51ca63b45d56a0fb6d5a3e8393989 (patch)
treecddd5e05f781a81263e2058af07ab5d1276e5676
parent8677280df35ec553da2583162a3ddf3a6da0bdf5 (diff)
downloadtime-of-crisis-9d68a413f9d51ca63b45d56a0fb6d5a3e8393989.tar.gz
Fix Triumph.
-rw-r--r--rules.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index c96a839..addb45e 100644
--- a/rules.js
+++ b/rules.js
@@ -4308,6 +4308,7 @@ states.combat_victory = {
view.actions.done = 1
},
done() {
+ push_undo()
goto_combat_victory()
},
}
@@ -4469,7 +4470,7 @@ function goto_free_increase_support_level() {
}
}
- if (game.combat.target === "barbarians" && !game.combat.own_military_emperor_died && has_card_event(CARD_S4X))
+ if (game.combat.type === "barbarians" && !game.combat.own_military_emperor_died && has_card_event(CARD_S4X))
game.state = "triumph"
else
end_combat()
@@ -4514,7 +4515,7 @@ states.triumph = {
push_undo()
set_add(game.used, c)
- award_legacy(game.current, "Triumph", game.combat.dtaken)
+ award_legacy(game.current, "Triumph", game.combat.dtaken + game.combat.staken)
end_combat()
},