summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
}
}