Merge pull request #25 from Legonzaur/main
realtime kill tracking hotfix
This commit is contained in:
@@ -96,9 +96,11 @@ export default async function listenKills() {
|
||||
allData.push(deathWithWeaponEntry)
|
||||
}
|
||||
|
||||
if (payload.victim_id != payload.attacker_id) {
|
||||
killEntry.kills++
|
||||
killEntry.total_distance += payload.distance
|
||||
killEntry.max_distance = Math.max(killEntry.max_distance || 0, payload.distance)
|
||||
}
|
||||
deathEntry.deaths++
|
||||
deathWithWeaponEntry.deaths_with_weapon++
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user