From 6740164c3a63e172bd1070b4f38189e76a17a94c Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Sat, 25 Jun 2022 15:39:26 -0700 Subject: [PATCH] Fix robber discard for robots Signed-off-by: James Ketrenos --- server/ai/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;