Commit b7363c75 authored by nanahira's avatar nanahira

fix

parent b3210cb1
Pipeline #43295 passed with stages
in 1 minute and 58 seconds
......@@ -888,8 +888,10 @@ export class Room {
// Check if all players have submitted their decks
const allReady = this.playingPlayers.every((p) => p.deck);
if (allReady) {
const prevWinPos =
this.duelRecords[this.duelRecords.length - 1]?.winPosition;
return this.startGame(
this.duelRecords[this.duelRecords.length - 1]?.winPosition,
prevWinPos == null ? undefined : ((1 - prevWinPos) as 0 | 1),
);
}
}
......
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