Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account
This post has been closed. You can still view previous posts, but you can't post any new replies.

[Bug][Card Decks][Infinite] When a card deck is infinite and contains more than one card, it will only produce the 1st produced card for subsequent times through the deck.

1456968282
The Aaron
Roll20 Production Team
API Scripter
Re:&nbsp; <a href="https://app.roll20.net/forum/post/2866772/infinite" rel="nofollow">https://app.roll20.net/forum/post/2866772/infinite</a>... I have reproduced the issue described in the above thread. &nbsp; Reproduction steps: Create a card deck with at least 2 cards. Set the deck to infinite Shuffle the deck. Deal or draw all the cards from the deck. All subsequent draws or deals from the deck will be whatever the first card dealt in step 4 was. Creating a deck with a minimum of 2 cards is all that is necessary to see the problem. &nbsp;Enabling infinite on the default Playing Cards deck makes it easier to see the duplication is always the first card dealt. Additionally, if in step 4 you deal more than the number of cards in the deck, the additional cards are in the same order as the first set. &nbsp;Example, if you have cards A, B, C, D, E, F and deal 18 cards from an infinite deck to a single player, they might receive: B D C A E F&nbsp;B D C A E F B D C Dealing an additional 10 cards will result in a hand like: B D C A E F&nbsp;B D C A E F B D C B B B B B B B B B B
Tested and Confirmed:
1456975632
Phil B.
Forum Champion
Sheet Author
Thanks guys for doing the legwork figuring out the reproduction steps for this bug, I will go ahead and log the bug and we'll look into it when we get a chance.
1457561779

Edited 1457562123
Phil B.
Forum Champion
Sheet Author
I have fixed this, the code should be on the dev server right now. I also added an additional option to decide how exactly the infinite deck functions, while I was in there.&nbsp;
1457585132
The Aaron
Pro
API Scripter
I tested it out, works great! &nbsp;I thought I'd found a bug (but dealing 54 cards with setting to have no duplicated, abs getting 3 duplicates!). &nbsp;It turned out to just be emergent behavior when switching between the two modes without reshuffling. :)