summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
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 9d2d908..f28a1ce 100644
--- a/rules.js
+++ b/rules.js
@@ -2434,9 +2434,9 @@ function valid_spaces_infl() {
// Check adjacency information
for (let adj_space_id of piece.adjacent) {
- console.log('adj_space_id', adj_space_id)
- console.log('checking adjacent space', spaces[adj_space_id].name_unique)
+ console.log('adj_space_id', adj_space_id)
if (adj_space_id) {
+ console.log('checking adjacent space', spaces[adj_space_id].name_unique)
const adj_piece = game.pieces.find(p => p && p.space_id === adj_space_id);
console.log('adjacent piece', adj_piece)
// Check if the adjacent space is controlled by the opponent