1
0

Added trigger to require discard

Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
James Ketrenos 2022-03-12 16:59:58 -08:00
parent d01ab17e13
commit abf4eaf2a8

View File

@ -397,9 +397,12 @@ const processRoll = (game, session, dice) => {
game.turn.limits.pips.push(i); game.turn.limits.pips.push(i);
} }
} else { } else {
mustDiscard.forEach(player => mustDiscard.forEach(player => {
addChatMessage(game, null, `The robber was rolled and ${player.name} must discard ${player.mustDiscard} resource cards!`) addChatMessage(game, null, `The robber was rolled and ${player.name} must discard ${player.mustDiscard} resource cards!`);
); sendUpdateToPlayer(game, {
private: game.player
});
});
} }
sendUpdateToPlayers(game, { sendUpdateToPlayers(game, {
@ -2778,10 +2781,7 @@ const asdf = () => {
game.turn.limits.pips.push(i); game.turn.limits.pips.push(i);
} }
} }
break; break;
} }
}; };