set user gangwar on 1 for testing

This commit is contained in:
Michael
2020-03-24 23:40:36 +01:00
parent d56f8f77b7
commit 9934d128e5
2 changed files with 2 additions and 2 deletions

View File

@@ -264,7 +264,7 @@ namespace ReallifeGamemode.Server.Gangwar
List<Player> ownersInGangwar = context.Users.Include(u => u.Faction).Where(u => onlinePlayers.Contains(u.Name) && u.Faction.Name == getOwner()).Select(u => u.Player).ToList();
List<Player> attackersInGangwar = context.Users.Include(u => u.Faction).Where(u => onlinePlayers.Contains(u.Name) && u.Faction.Name == getAttacker()).Select(u => u.Player).ToList();
if (ownersInGangwar.Count < 5 && attackersInGangwar.Count < 5)
if (ownersInGangwar.Count < 1 && attackersInGangwar.Count < 1)
{
List<Player> leaders = context.Users.Include(u => u.Faction).Where(u => onlinePlayers.Contains(u.Name) && u.Faction.Name == getAttacker() && u.FactionLeader).Select(u => u.Player).ToList();
foreach(var l in leaders)