Merge pull request #214 from OpzekerIT/dev

fix for custom met bots
This commit is contained in:
Lanta 2025-04-10 12:54:59 +02:00 committed by GitHub
commit 9a210be579
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -99,10 +99,10 @@ foreach ($winid in $new_win_matches) {
continue continue
} #skip tdm matches } #skip tdm matches
if ($winmatches[0].matchType -eq 'custom') { 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 { 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) { if ($new_win_matches.count -le 10) {