Commit 7c134452 authored by Chunchi Che's avatar Chunchi Che

fix

parent a9c5649f
Pipeline #23192 passed with stages
in 10 minutes and 24 seconds
...@@ -27,12 +27,14 @@ export default async (start: ygopro.StocGameMessage.MsgStart) => { ...@@ -27,12 +27,14 @@ export default async (start: ygopro.StocGameMessage.MsgStart) => {
? 1 ? 1
: 0; : 0;
if (sideStore.stage !== SideStage.NONE) {
// 更新Side状态
sideStore.stage = SideStage.DUEL_START;
} else {
// 通知房间页面决斗开始 // 通知房间页面决斗开始
// 这行在该函数中的位置不能随便放,否则可能会block住 // 这行在该函数中的位置不能随便放,否则可能会block住
roomStore.stage = RoomStage.DUEL_START; roomStore.stage = RoomStage.DUEL_START;
}
// 更新Side状态
sideStore.stage = SideStage.DUEL_START;
matStore.initInfo.set(0, { matStore.initInfo.set(0, {
life: start.life1, life: start.life1,
......
...@@ -16,7 +16,7 @@ export enum SideStage { ...@@ -16,7 +16,7 @@ export enum SideStage {
const emptyDeck: IDeck = { deckName: "", main: [], extra: [], side: [] }; const emptyDeck: IDeck = { deckName: "", main: [], extra: [], side: [] };
class SideStore implements NeosStore { class SideStore implements NeosStore {
stage: SideStage = SideStage.WAITING; stage: SideStage = SideStage.NONE;
deck: IDeck = emptyDeck; deck: IDeck = emptyDeck;
reset(): void { reset(): void {
this.stage = SideStage.NONE; this.stage = SideStage.NONE;
......
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