This commit is contained in:
t.ruspekhofer 2023-01-03 13:54:23 +01:00
commit ef1c301c05
2 changed files with 12 additions and 2 deletions

View file

@ -110,7 +110,7 @@ namespace Lieb.Data
signUp.RaidRole = randomRole;
}
int noGroups = (int)Math.Ceiling((double)(raid.SignUps.Where(s => s.SignUpType == SignUpType.SignedUp).Count() / 5));
int noGroups = (int)Math.Ceiling(raid.SignUps.Where(s => s.SignUpType == SignUpType.SignedUp).Count() / 5.0);
HashSet<GuildWars2Account> signedUpAccounts = raid.SignUps.Where(s => s.GuildWars2Account != null && s.GuildWars2Account.EquippedBuilds.Where(b => b.GuildWars2Build.UseInRandomRaid).Count() > 0
&& s.SignUpType == SignUpType.SignedUp)