From ecbf43900f449945c732f968c8c6e6ed96c89cc8 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 3 Jan 2022 15:08:32 +0100 Subject: Militia only defend raids on stockades. --- rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index 805e075..72ab486 100644 --- a/rules.js +++ b/rules.js @@ -3452,9 +3452,9 @@ states.pick_raid = { function goto_raid_militia() { let where = game.raid.where; - if (enemy_department_has_at_least_n_militia(where, 1)) { + if (has_enemy_stockade(where) && enemy_department_has_at_least_n_militia(where, 1)) { console.log("MILITIA AGAINST RAID", space_name(where), space_name(game.raid.battle)); - if (where === game.raid.battle && has_enemy_stockade(where)) { + if (where === game.raid.battle) { console.log("BATTLED AGAINST STOCKADE, NO MILITIA ALLOWED", space_name(game.raid.battle)); resolve_raid(); } else { -- cgit v1.2.3