diff options
-rw-r--r-- | rules.js | 12 | ||||
-rw-r--r-- | rules.ts | 14 |
2 files changed, 22 insertions, 4 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 = { @@ -7499,6 +7499,11 @@ function goto_defender_assign_hits() { 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 @@ -7513,6 +7518,11 @@ function goto_attacker_assign_hits() { 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 @@ -7828,9 +7838,9 @@ function finish_action_assign_hits() { 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 === |