Commit 224c83d4 authored by nanahira's avatar nanahira

fix

parent 1c6c7804
...@@ -348,7 +348,10 @@ export class Room { ...@@ -348,7 +348,10 @@ export class Room {
private async sendPostWatchMessages(client: Client) { private async sendPostWatchMessages(client: Client) {
await client.send(new YGOProStocDuelStart()); await client.send(new YGOProStocDuelStart());
const previousDuels = this.duelRecords.slice(0, -1); const previousDuels =
this.duelStage === DuelStage.Dueling
? this.duelRecords.slice(0, -1)
: this.duelRecords;
if (previousDuels.length) { if (previousDuels.length) {
for (const duelRecord of previousDuels) { for (const duelRecord of previousDuels) {
for (const message of duelRecord.toObserverPlayback((msg) => for (const message of duelRecord.toObserverPlayback((msg) =>
......
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