From a06803d1192003df333ff1cf4cf7e58640aa2e78 Mon Sep 17 00:00:00 2001 From: Gareth Latty Date: Wed, 27 Jul 2016 13:07:00 +0100 Subject: [PATCH] Make the played cards in the background reflect the slots in the call. --- client/src/MassiveDecks/Scenes/Playing.elm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/MassiveDecks/Scenes/Playing.elm b/client/src/MassiveDecks/Scenes/Playing.elm index 5ddbd66..deaebb5 100644 --- a/client/src/MassiveDecks/Scenes/Playing.elm +++ b/client/src/MassiveDecks/Scenes/Playing.elm @@ -207,8 +207,9 @@ lobbyAndHandUpdated lobbyModel round = (newShownPlayed, seed) = case playedCards of Just amount -> let + toShow = amount * (Card.slots round.call) existing = (List.length shownPlayed.animated) + (List.length shownPlayed.toAnimate) - (new, seed) = addShownPlayed (amount - existing) model.seed + (new, seed) = addShownPlayed (toShow - existing) model.seed in (ShownPlayedCards shownPlayed.animated (shownPlayed.toAnimate ++ new), seed)