From 84377f62b03fc2691c17b940b0a125e0f6628301 Mon Sep 17 00:00:00 2001 From: purerosefallen <78877@qq.com> Date: Sun, 3 Nov 2019 10:40:24 +0800 Subject: [PATCH] only for safety --- public/src/js/autoscore.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/src/js/autoscore.js b/public/src/js/autoscore.js index 84115cc..7345c20 100644 --- a/public/src/js/autoscore.js +++ b/public/src/js/autoscore.js @@ -59,6 +59,11 @@ class AutoScore { 380000, ] } + if (this.GetMaxCombo() === 0) { + this.ScoreDiff = 100; + this.ScoreInit = 450; + return; + } const target = this.GetTargetScore(difficulty, level); this.Score = 0; this.ScoreDiff = 0;