Commit 77b38903 authored by nanahira's avatar nanahira

fix

parent 224c83d4
Pipeline #43401 passed with stages
in 3 minutes and 42 seconds
......@@ -1327,7 +1327,6 @@ export class Room {
deck: shuffledDecks[index],
}));
}
this.duelRecords.push(duelRecord);
const extraScriptPaths = [
'./script/patches/entry.lua',
......@@ -1349,7 +1348,7 @@ export class Room {
};
if (isMatchMode) {
// Match mode uses completed duel count in gframe (before current duel result).
registry.duel_count = String(this.duelRecords.length - 1);
registry.duel_count = String(this.duelRecords.length);
}
duelRecord.players.forEach((player, i) => {
registry[`player_name_${i}`] = player.name;
......@@ -1431,6 +1430,7 @@ export class Room {
...[...this.watchers].map((p) => p.send(watcherMsg)),
]);
this.duelRecords.push(duelRecord);
this.duelStage = DuelStage.Dueling;
this.ocgcore.message$.subscribe((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