mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-06 05:27:54 -05:00
Merge pull request #1700 from Morfent/trivia
Trivia plugin: fix crash in timer mode scoring
This commit is contained in:
commit
476d00a079
|
|
@ -180,7 +180,7 @@ var Trivia = (function () {
|
|||
scoreData.correctAnswers++;
|
||||
if (this.mode === 'timer') {
|
||||
var points = 5 - ~~((Date.now() - this.askedAt) / (3 * 1000));
|
||||
if (points > 0) {
|
||||
if (points > 0 && points < 6) {
|
||||
scoreData.score += points;
|
||||
scoreData.points = points;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user