Fluorohydride / ygopro-core

ygopro script engine.
MIT License
321 stars 135 forks source link

fix deck sequence on swap_deck_and_grave #583

Closed mercury233 closed 4 months ago

mercury233 commented 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.

replay: deck sequence2.zip

salix5 commented 4 months ago

I think it indicates that setting current.sequence is wrong. current.sequence should be generated dynamically (like std::find).