#takeCards(1, true, 0, true) keeping copy of wrong card in a deck

1 messages · Page 1 of 1 (latest)

strong crescent
#

Spawn a standard deck of cards with jokers, get its id. Note that the card on the bottom (front) of the deck is the ace of clubs and a joker is at the back.
world.getObjectById(id).takeCards(1, true, 0 true) puts a copy (maybe a copy) of the ace of clubs on the top of the deck. Good so far.
Flip the deck over and see that the ace of clubs at the bottom has now magically turned into a two of clubs. Pull that off the bottom/front and you'll see that the two of clubs has been duplicated.

Works fine for takeCards(1, true, 1, true) which leaves the A, 2, 3 in untouched order at the bottom/front and copies a 2 of clubs to the top/back. Also works fine for takeCards(1, true, 2, true), so I'm assuming every non-zero offset is fine.

tawny elk
#

Confirmed and fixed for next update