Commit ae3bfdce authored by Chunchi Che's avatar Chunchi Che

Merge branch 'fix/draw' into 'main'

fix draw sequence error

See merge request mycard/Neos!251
parents 74510f46 3056c4ea
......@@ -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