diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-05-05 22:50:21 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-05-05 22:50:21 +0200 |
commit | d1333dfb5056f03619e8a7984d0544fa51c22816 (patch) | |
tree | 400c75061cedde93dad2af6e4ebe17da73666ae0 /rules.js | |
parent | 64dd190e9e2301971946d77a5a797d07abbb6b75 (diff) | |
download | plantagenet-d1333dfb5056f03619e8a7984d0544fa51c22816.tar.gz |
re-introduce pause at end of assign hits step
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -6359,6 +6359,10 @@ function goto_defender_assign_hits() { else game.state = "assign_hits"; } +function resume_defender_assign_hits() { + set_active_defender(); + game.state = "assign_hits"; +} function end_defender_assign_hits() { game.who = NOBODY; game.battle.ahits = 0; @@ -6371,6 +6375,10 @@ function goto_attacker_assign_hits() { else game.state = "assign_hits"; } +function resume_attacker_assign_hits() { + set_active_attacker(); + game.state = "assign_hits"; +} function end_attacker_assign_hits() { game.who = NOBODY; game.battle.dhits = 0; @@ -6663,9 +6671,9 @@ function finish_action_assign_hits() { else game.battle.dhits--; if (game.active === game.battle.attacker) - goto_attacker_assign_hits(); + resume_attacker_assign_hits(); else - goto_defender_assign_hits(); + resume_defender_assign_hits(); } // === BATTLE EVENT: SWIFT MANEUVER === states.swift_maneuver_1 = { |