feat: set rank_after if no udemaeAfter

main
spacemeowx2 2022-10-21 16:04:19 +08:00
parent dbc0985211
commit ce95475201
1 changed files with 3 additions and 0 deletions

View File

@ -254,6 +254,9 @@ export class StatInkExporter implements BattleExporter<VsBattle> {
[result.rank_after, result.rank_after_s_plus] = parseUdemae(
bankaraMatchChallenge.udemaeAfter,
);
} else {
result.rank_after = result.rank_before;
result.rank_after_s_plus = result.rank_before_s_plus;
}
if (lastInChallenge) {
result.challenge_win = bankaraMatchChallenge.winCount;