diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-07-08 11:42:49 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-07-08 11:42:49 +0200 |
commit | 9d68a413f9d51ca63b45d56a0fb6d5a3e8393989 (patch) | |
tree | cddd5e05f781a81263e2058af07ab5d1276e5676 /rules.js | |
parent | 8677280df35ec553da2583162a3ddf3a6da0bdf5 (diff) | |
download | time-of-crisis-9d68a413f9d51ca63b45d56a0fb6d5a3e8393989.tar.gz |
Fix Triumph.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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() }, |