From 9d68a413f9d51ca63b45d56a0fb6d5a3e8393989 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 8 Jul 2023 11:42:49 +0200 Subject: Fix Triumph. --- rules.js | 5 +++-- 1 file 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() }, -- cgit v1.2.3