summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-06-25 00:54:23 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 11:54:52 +0100
commitbcc9c38cfe3dd56e9a190610dc96be50b7eb5aaa (patch)
tree0069335cd413ec746a4975a48aca459634a3773a /rules.js
parent88672f4d8764a4eac863c5b4303a70ba8522b94f (diff)
downloadwilderness-war-bcc9c38cfe3dd56e9a190610dc96be50b7eb5aaa.tar.gz
Make sure attacker's deployed militia count as attacking pieces.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 0512968..9b13ffd 100644
--- a/rules.js
+++ b/rules.js
@@ -4261,6 +4261,8 @@ states.militia_in_battle = {
piece(p) {
push_undo()
move_piece_to(p, game.battle.where)
+ if (game.active === game.battle.attacker)
+ game.battle.atk_pcs.push(p)
if (game.summary)
game.summary.deploy.push(p)
else