fix: time_spent_living if no death

This commit is contained in:
Valentin Kaelin 2025-10-19 22:25:54 +02:00
parent c0cdc342d0
commit 522d011618
No known key found for this signature in database
GPG key ID: 992EF3DACDB0BD24

View file

@ -148,7 +148,7 @@ class MatchParser {
minions: player.totalMinionsKilled + player.neutralMinionsKilled,
critical_strike: player.largestCriticalStrike,
killing_spree: player.killingSprees,
time_spent_living: player.longestTimeSpentLiving,
time_spent_living: player.longestTimeSpentLiving || player.timePlayed, // If no death, longestTimeSpentLiving is 0
perks_primary_style: primaryStyle!.style,
perks_secondary_style: secondaryStyle!.style,
perks_selected: perksSelected.concat(Object.values(player.perks.statPerks)),