diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-01-03 15:08:32 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 11:54:52 +0100 |
commit | ecbf43900f449945c732f968c8c6e6ed96c89cc8 (patch) | |
tree | 55f03d89501692b78d36d8f9573799250e74d3da /rules.js | |
parent | 836d13c6e0eb96ab10d810f4016eda6fc06efdd2 (diff) | |
download | wilderness-war-ecbf43900f449945c732f968c8c6e6ed96c89cc8.tar.gz |
Militia only defend raids on stockades.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |