fix for custom met bots #214

Merged
OpzekerIT merged 1 commit from dev into main 2025-04-10 10:54:59 +00:00

View file

@ -99,10 +99,10 @@ foreach ($winid in $new_win_matches) {
continue
} #skip tdm matches
if ($winmatches[0].matchType -eq 'custom') {
$players_to_report = $match_stats.included.attributes.stats
$players_to_report = $match_stats.included.attributes.stats | where-object { $_.playerId -notlike "ai.*" }
}
else {
$players_to_report = ($match_stats.included.attributes.stats | where-object { $_.winplace -eq 1 })
$players_to_report = $match_stats.included.attributes.stats | where-object { $_.winplace -eq 1 }
}
if ($new_win_matches.count -le 10) {