diff --git a/server/ai/app.js b/server/ai/app.js index 67d04b1..9768cf9 100644 --- a/server/ai/app.js +++ b/server/ai/app.js @@ -735,7 +735,7 @@ const message = async (data) => { if (!isMatch(waitingFor, received)) { console.log(`${name} - still waiting - waitingFor: `, waitingFor); - if (game.robberInAction) { + if (game.turn && game.turn.robberInAction) { console.log(`${name} - robber in action! Must check discards...`); } else { return;