Sorry, we don't support your browser.  Install a modern browser
This post is closed.

Problem dealing cards to secondary hands#400

I have a game where I deal ten cards to the main hand and four cards from a different deck to secondary hand.
Everything was working fine until update 13

deckA.deal(10, p.color)
deckB.deal(4, p.color, 2)

The ten cards are delivered fine to the main handzone, but the 4 in the secondary hand don’t snap to horizontal position, float in random orientation and if I touch them, they fall to the table.
If I pick one of that cards manually and I try to snap it to that secondary handzone, it still don’t work. But, if I put manually that card on one of the main handzones it snaps to position and then I can drag that card to the secondary handzone, it will snaps to the secondary handzone horizontal position as expected. But the other ones dealt to the bugged zone still don’t works as cards (can’t be returned to their original deck) until their are placed manually in any main handzone.

It seems that when they are dealt to a secondary handzone they lose the card attribute, but can recover it only by by being dragged to the main handzone.

I have tried, destroying and creating new handzones, destroying and creating the decks and dealing from both decks to main and secondary hand in all possible combinations with multiple and single cards.

I have attached a picture using two standard decks.

3 years ago

If I use a workaround with takeObject() instead of deal() everything works as expected from deal().

3 years ago
Changed the status to
Research
3 years ago
Changed the status to
In Progress
3 years ago
Changed the status to
Completed
3 years ago