diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-08-23 23:46:23 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-08-23 23:46:23 +0200 |
commit | 78c27d6d0bc88dffb3070e2c77f6c4f2757a04e5 (patch) | |
tree | 3720c17cff89d46573948d59766fe2266b09817b | |
parent | 69e9f5df3d623cbbb3a4d527bd2b8b6169ddcc1e (diff) | |
download | washingtons-war-78c27d6d0bc88dffb3070e2c77f6c4f2757a04e5.tar.gz |
Arnold is a general!
-rw-r--r-- | rules.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) } } |