fix for custom met bots #214
1 changed files with 3 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue