diff options
-rw-r--r-- | rules.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4509,7 +4509,7 @@ states.combat_victory = { let ae = is_attacker_eliminated() if (de && ae) prompt("Combat: There is no winner.") - else if (de || game.combat.dtaken + game.combat.staken + game.combat.cavalry > game.combat.ataken) + else if (!ae && (de || game.combat.dtaken + game.combat.staken + game.combat.cavalry > game.combat.ataken)) prompt("Combat: You win the battle!") else prompt("Combat: Defenders win the battle!") @@ -4528,7 +4528,7 @@ function goto_combat_victory() { let ae = is_attacker_eliminated() if (de && ae) goto_combat_no_victory() - else if (de || game.combat.dtaken + game.combat.staken + game.combat.cavalry > game.combat.ataken) + else if (!ae && (de || game.combat.dtaken + game.combat.staken + game.combat.cavalry > game.combat.ataken)) goto_combat_victory_attacker() else goto_combat_victory_defender() |