Closed mercury233 closed 4 months ago
After doing SwapDeckAndGrave to the deck, it was relying on shuffle(playerid, LOCATION_DECK) to reset the sequence of the cards in deck, but if DUEL_PSEUDO_SHUFFLE is set, the reset part will be skipped, and the sequence will be wrong.
SwapDeckAndGrave
shuffle(playerid, LOCATION_DECK)
DUEL_PSEUDO_SHUFFLE
replay: deck sequence2.zip
I think it indicates that setting current.sequence is wrong. current.sequence should be generated dynamically (like std::find).
current.sequence
std::find
After doing
SwapDeckAndGrave
to the deck, it was relying onshuffle(playerid, LOCATION_DECK)
to reset the sequence of the cards in deck, but ifDUEL_PSEUDO_SHUFFLE
is set, the reset part will be skipped, and the sequence will be wrong.replay: deck sequence2.zip