summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-05 12:41:44 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-05 12:41:44 +0200
commit49fd23a1bee96c6c01b5bdbc4a978625517c2968 (patch)
tree479285533ad5c918a977f516919fa1ecfa142118
parent9ecc2d81309e6860025702ed8b6353bb51e339c5 (diff)
downloadplantagenet-49fd23a1bee96c6c01b5bdbc4a978625517c2968.tar.gz
reset game.who when ending each hit assignment step
-rw-r--r--rules.ts3
1 files changed, 2 insertions, 1 deletions
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