summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-04-19 20:36:50 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 11:54:52 +0100
commit5ec48086f75ce7b592cfcc43640301e65a737b99 (patch)
tree17528545b61c7ebd0b81e6b66cc018e36e6d1042 /rules.js
parent4d88476e54e9622622a7aee17bd9fa68ca58cef1 (diff)
downloadwilderness-war-5ec48086f75ce7b592cfcc43640301e65a737b99.tar.gz
Don't allow withdrawing into enemy fortress under siege!
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 29b699e..539f2b4 100644
--- a/rules.js
+++ b/rules.js
@@ -3790,7 +3790,7 @@ function goto_designate_inside() {
let where = moving_piece_space();
if (has_unbesieged_enemy_units_that_did_not_intercept(where)) {
clear_undo();
- if (is_fortress(where) || has_enemy_fort(where)) {
+ if (has_enemy_fortress(where) || has_enemy_fort(where)) {
set_active_enemy();
game.state = 'designate_inside';
if (game.summary)