summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-09-17 22:22:04 +0200
committerTor Andersson <tor@ccxvii.net>2023-09-17 22:22:04 +0200
commit381abcd303bcfb647869c410f6ae914c11eecf58 (patch)
tree6c432c2b1c69089e4129dd0fb766afdab8f06b8b
parent898982302e0f73aadc436ffc880c612717fbed36 (diff)
downloadwilderness-war-381abcd303bcfb647869c410f6ae914c11eecf58.tar.gz
Allow Massacre after capturing stockade space.
... even if destroying the stockade due to battle.
-rw-r--r--rules.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/rules.js b/rules.js
index 8399cad..4376f88 100644
--- a/rules.js
+++ b/rules.js
@@ -3697,13 +3697,12 @@ function end_move_step(final=false, overrun=false) {
}
if (has_enemy_stockade(where)) {
if (has_friendly_drilled_troops(where)) {
- if (did_battle) {
+ if (did_battle)
destroy_enemy_stockade_after_battle(where)
- } else {
+ else
capture_enemy_stockade(where)
- if (can_play_massacre())
- return goto_massacre('move')
- }
+ if (can_play_massacre())
+ return goto_massacre('move')
}
}
stop_move()