Commit a65180b6 authored by timel's avatar timel Committed by Chunchi Che

feat: drwa animation

parent 7a7e5281
......@@ -2,6 +2,7 @@ import { sleep } from "@/infra";
import { fetchCard, ygopro } from "@/api";
import { fetchEsHintMeta, matStore, cardStore } from "@/stores";
import { zip } from "@/ui/Duel/utils";
import { ReportEnum } from "@/ui/Duel/NewPlayMat/Card/springs/types";
export default async (draw: ygopro.StocGameMessage.MsgDraw) => {
fetchEsHintMeta({ originMsg: "玩家抽卡时" });
......@@ -36,4 +37,8 @@ export default async (draw: ygopro.StocGameMessage.MsgDraw) => {
card.code = draw.cards[idx];
card.sequence = idx + handsLength;
});
// 抽卡动画
cardStore
.at(ygopro.CardZone.HAND, draw.player)
.forEach((card) => eventBus.emit(ReportEnum.Move, card.uuid));
};
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