Skip to content

Commit 7e8dcfb

Browse files
committed
name teams in !predict by the highest rated player
1 parent 80e9065 commit 7e8dcfb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ZkLobbyServer/autohost/Commands/CmdPredict.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public override async Task ExecuteArmed(ServerBattle battle, Say e)
7676
var chances = RatingSystems.GetRatingSystem(cat).PredictOutcome(teams, DateTime.UtcNow);
7777
for (int i = 0; i < teams.Count; i++)
7878
{
79-
await battle.SayBattle( $"Team {teams[i].First().Name} has a {Math.Round(1000 * chances[i]) / 10}% chance to win");
79+
await battle.SayBattle( $"Team {teams[i].OrderByDescending(x => x.GetRating(cat).Elo).First().Name} has a {Math.Round(1000 * chances[i]) / 10}% chance to win");
8080
}
8181
}
8282
}

0 commit comments

Comments
 (0)