summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-08-23 23:46:23 +0200
committerTor Andersson <tor@ccxvii.net>2024-08-23 23:46:23 +0200
commit78c27d6d0bc88dffb3070e2c77f6c4f2757a04e5 (patch)
tree3720c17cff89d46573948d59766fe2266b09817b /rules.js
parent69e9f5df3d623cbbb3a4d527bd2b8b6169ddcc1e (diff)
downloadwashingtons-war-78c27d6d0bc88dffb3070e2c77f6c4f2757a04e5.tar.gz
Arnold is a general!
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index b7a39b7..6436f2e 100644
--- a/rules.js
+++ b/rules.js
@@ -2350,7 +2350,7 @@ function can_intercept_to(to) {
let g = find_american_or_french_general(space)
if (is_quebec_falmouth_path(to, space) && g !== ARNOLD)
continue
- if (g && !has_general_moved(g))
+ if (g !== NOBODY && !has_general_moved(g))
return true
}
}
@@ -2363,7 +2363,7 @@ function gen_intercept() {
let g = find_american_or_french_general(space)
if (is_quebec_falmouth_path(game.move.to, space) && g !== ARNOLD)
continue
- if (g && !has_general_moved(g))
+ if (g !== NOBODY && !has_general_moved(g))
gen_action_general(g)
}
}