Commit 58d57563 authored by nanahira's avatar nanahira

fix

parent 7f49fd18
...@@ -436,9 +436,11 @@ export class Room { ...@@ -436,9 +436,11 @@ export class Room {
this.disposeOcgcore(); this.disposeOcgcore();
this.ocgcore = undefined; this.ocgcore = undefined;
if (this.duelStage === DuelStage.Siding) { if (this.duelStage === DuelStage.Siding) {
this.playingPlayers await Promise.all(
.filter((p) => !p.deck) this.playingPlayers
.forEach((p) => p.send(new YGOProStocDuelStart())); .filter((p) => !p.deck)
.map((p) => p.send(new YGOProStocDuelStart())),
);
} }
const duelPos = this.getIngameDuelPosByDuelPos(winMsg.player!); const duelPos = this.getIngameDuelPosByDuelPos(winMsg.player!);
this.isPosSwapped = false; this.isPosSwapped = false;
......
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