Skip to content

Commit dbbdeaf

Browse files
committed
try to fix CMD_Predict
1 parent 2eddfb8 commit dbbdeaf

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

ZkLobbyServer/autohost/Commands/CmdPredict.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ public override async Task ExecuteArmed(ServerBattle battle, Say e)
4646
teams = b.Users.Values.Where(u => !u.IsSpectator)
4747
.GroupBy(u => u.AllyNumber)
4848
.Select(x => x.Select(p => Account.AccountByName(db, p.Name))).ToList();
49-
}
5049

51-
var chances = RatingSystems.GetRatingSystem(cat).PredictOutcome(teams);
52-
for (int i = 0; i < teams.Count; i++)
53-
{
54-
await battle.Respond(e, $"Team {teams[i].First().Name} has a {Math.Round(1000 * chances[i]) / 10}% chance to win");
50+
var chances = RatingSystems.GetRatingSystem(cat).PredictOutcome(teams);
51+
for (int i = 0; i < teams.Count; i++)
52+
{
53+
await battle.Respond(e, $"Team {teams[i].First().Name} has a {Math.Round(1000 * chances[i]) / 10}% chance to win");
54+
}
5555
}
5656
}
5757
}

0 commit comments

Comments
 (0)