Commit 120c23fc authored by nanahira's avatar nanahira

fix

parent 644d5ab1
Pipeline #4257 passed with stages
in 5 minutes and 22 seconds
......@@ -710,16 +710,25 @@ class DataManager {
}
async randomDuelPlayerWin(name) {
const score = await this.getOrCreateRandomDuelScore(name);
if (!score) {
return;
}
score.win();
await this.saveRandomDuelScore(score);
}
async randomDuelPlayerLose(name) {
const score = await this.getOrCreateRandomDuelScore(name);
if (!score) {
return;
}
score.lose();
await this.saveRandomDuelScore(score);
}
async randomDuelPlayerFlee(name) {
const score = await this.getOrCreateRandomDuelScore(name);
if (!score) {
return;
}
score.flee();
await this.saveRandomDuelScore(score);
}
......
......@@ -714,16 +714,25 @@ export class DataManager {
}
async randomDuelPlayerWin(name: string) {
const score = await this.getOrCreateRandomDuelScore(name);
if (!score) {
return;
}
score.win();
await this.saveRandomDuelScore(score);
}
async randomDuelPlayerLose(name: string) {
const score = await this.getOrCreateRandomDuelScore(name);
if (!score) {
return;
}
score.lose();
await this.saveRandomDuelScore(score);
}
async randomDuelPlayerFlee(name: string) {
const score = await this.getOrCreateRandomDuelScore(name);
if (!score) {
return;
}
score.flee();
await this.saveRandomDuelScore(score);
}
......
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