We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97568eb commit 63468cbCopy full SHA for 63468cb
1 file changed
ZkLobbyServer/SpringieInterface/PlanetWarsMatchMaker.cs
@@ -265,6 +265,20 @@ private void RunSquadFormation()
265
foreach (var p in fillers) pool.Remove(p);
266
}
267
268
+ // Pass 3: absorb leftovers into an existing squad on their original planet,
269
+ // so all attackers join when a planet had more people than TeamSize.
270
+ foreach (var name in pool.ToList())
271
+ {
272
+ var originalPlanetId = playerPlanet[name].PlanetID;
273
+ var squad = FormedSquads.FirstOrDefault(s => s.PlanetID == originalPlanetId);
274
+ if (squad != null)
275
276
+ squad.Attackers.Add(name);
277
+ squad.TeamSize = squad.Attackers.Count;
278
+ pool.Remove(name);
279
+ }
280
281
+
282
AttackOptions.Clear();
283
284
// initialize defender votes for attacked planets
0 commit comments