From 49fd23a1bee96c6c01b5bdbc4a978625517c2968 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 5 May 2024 12:41:44 +0200 Subject: reset game.who when ending each hit assignment step --- rules.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rules.ts b/rules.ts index ba5a036..d761f05 100644 --- a/rules.ts +++ b/rules.ts @@ -7541,6 +7541,7 @@ function goto_defender_assign_hits() { } function end_defender_assign_hits() { + game.who = NOBODY game.battle.ahits = 0 goto_attacker_assign_hits() } @@ -7554,6 +7555,7 @@ function goto_attacker_assign_hits() { } function end_attacker_assign_hits() { + game.who = NOBODY game.battle.dhits = 0 end_battle_strike_step() } @@ -7696,7 +7698,6 @@ states.assign_hits = { goto_regroup() }, done() { - game.who = NOBODY if (game.active === game.battle.attacker) end_attacker_assign_hits() else -- cgit v1.2.3