ajanata / PretendYoureXyzzy

A web clone of the card game Cards Against Humanity.
https://pretendyoure.xyz/zy
BSD 2-Clause "Simplified" License
1.22k stars 397 forks source link

Already played Cards staying in Inventory #151

Closed vainamov closed 1 year ago

vainamov commented 7 years ago

Sometimes when you play a card, it won't get removed from your hand. When you don't noticed and try to throw it again, you get an error saying you don't have this card and then you're stuck. Maybe either check at the beginning of each round, if there're cards the player don't have anymore and remove them or let the user choose another card instead if he accidentally picked one.

ajanata commented 7 years ago

I still have no idea why the client desyncs like that, but if you type /sync into the chat box, or just reload the page, they'll go away.