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

fix draw sequence error

parent 74510f46
Pipeline #22747 passed with stages
in 13 minutes
...@@ -11,6 +11,7 @@ export default async (draw: ygopro.StocGameMessage.MsgDraw) => { ...@@ -11,6 +11,7 @@ export default async (draw: ygopro.StocGameMessage.MsgDraw) => {
const handsLength = cardStore.at(ygopro.CardZone.HAND, draw.player).length; const handsLength = cardStore.at(ygopro.CardZone.HAND, draw.player).length;
const newHands = cardStore const newHands = cardStore
.at(ygopro.CardZone.DECK, draw.player) .at(ygopro.CardZone.DECK, draw.player)
.sort((a, b) => a.location.sequence - b.location.sequence)
.slice(-drawLength); .slice(-drawLength);
for (const idx in newHands) { 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