Commit c5ffea9f authored by JoyJ's avatar JoyJ

limit max cards to 7

parent 78f1395b
Pipeline #17307 failed with stages
......@@ -134,6 +134,9 @@ function roundEnded(game) {
_.each(game.players, function(player) {
if(!game.players[game.Judge] != player) {
removeFromArray(player.cards, player.selectedWhiteCardId);
while(player.cards.length > 7) {
(player.cards).splice(0, 1);
}
drawWhiteCard(game, player);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment