Commit 3056c4ea authored by Chunchi Che's avatar Chunchi Che

fix draw sequence error

parent 74510f46
......@@ -11,6 +11,7 @@ export default async (draw: ygopro.StocGameMessage.MsgDraw) => {
const handsLength = cardStore.at(ygopro.CardZone.HAND, draw.player).length;
const newHands = cardStore
.at(ygopro.CardZone.DECK, draw.player)
.sort((a, b) => a.location.sequence - b.location.sequence)
.slice(-drawLength);
for (const idx in newHands) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment