From abf4eaf2a8d820a1e839f451c0382cc401544423 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Sat, 12 Mar 2022 16:59:58 -0800 Subject: [PATCH] Added trigger to require discard Signed-off-by: James Ketrenos --- server/routes/games.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/server/routes/games.js b/server/routes/games.js index 38977fa..5d93657 100755 --- a/server/routes/games.js +++ b/server/routes/games.js @@ -397,9 +397,12 @@ const processRoll = (game, session, dice) => { game.turn.limits.pips.push(i); } } else { - mustDiscard.forEach(player => - addChatMessage(game, null, `The robber was rolled and ${player.name} must discard ${player.mustDiscard} resource cards!`) - ); + mustDiscard.forEach(player => { + addChatMessage(game, null, `The robber was rolled and ${player.name} must discard ${player.mustDiscard} resource cards!`); + sendUpdateToPlayer(game, { + private: game.player + }); + }); } sendUpdateToPlayers(game, { @@ -2778,10 +2781,7 @@ const asdf = () => { game.turn.limits.pips.push(i); } } - break; - - } };