Skip to content

Commit 56e6b47

Browse files
committed
Bump version, fix clove round 0 bug
1 parent bf546f6 commit 56e6b47

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "spectra-server",
3-
"version": "0.2.19",
3+
"version": "0.2.20",
44
"author": {
55
"name": "Spectra Team",
66
"url": "https://valospectra.com"

src/connector/databaseConnector.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
require("dotenv").config();
2-
import { Match } from "../model/Match";
32
import logging from "../util/Logging";
43
const Log = logging("DatabaseConnector");
54

src/model/Player.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,11 @@ export class Player {
315315
}
316316

317317
private cloveSpecificChecks(data: Partial<IFormattedScoreboard | IFormattedAuxScoreboardTeam>) {
318+
// If clove has no stats (i.e. round "0"), don't do anything
319+
if (data.kills == 0 && data.deaths == 0 && data.assists == 0) {
320+
return;
321+
}
322+
318323
// Clove using up all their ult points revives them with a timer on kills, set suffix for representative icon
319324
if (data.currUltPoints == 0 && this.ultReady) {
320325
this.setIconNameSuffix(IconNameSuffixes.CLOVE_ULTIMATE);

src/util/CompatibleClients.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import semver from "semver";
22

33
export function isCompatibleVersion(version: string): boolean {
4-
return semver.satisfies(version, `>=0.2.19 <0.3.0`);
4+
return semver.satisfies(version, `>=0.2.23 <0.3.0`);
55
}

0 commit comments

Comments
 (0)