Skip to content

Commit

Permalink
clarify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Sep 8, 2024
1 parent 4adf5c9 commit 28736cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion util/utility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -969,8 +969,9 @@ export function isDataComplete(match: Partial<ParsedMatch>) {
match.version &&
match.chat &&
match.players?.[0]?.hero_damage &&
// Disconnected players may not have upgrades, so check all slots
// Some players may not have upgrades (DCed or never upgraded abilities), so check all slots
// If it's ability upgrade expired data none of the players will have it
// Looks like some ability draft matches also don't have this data (not sure if present in source)
match.players?.some(p => p.ability_upgrades_arr),
);
}
Expand Down

0 comments on commit 28736cd

Please sign in to comment.