fix: Round confliction logic

This commit is contained in:
MSWS
2025-11-10 15:02:40 -08:00
parent eff68897a0
commit dfe86b0242

View File

@@ -86,8 +86,7 @@ public class SpecialRoundStarter(IServiceProvider provider)
var rounds = Provider.GetServices<ITerrorModule>()
.OfType<AbstractSpecialRound>()
.Where(r => r.Config.Weight > 0 && !exclude.Contains(r))
.Where(r
=> !exclude.Any(er => er.ConflictsWith(r) && !r.ConflictsWith(er)))
.Where(r => !exclude.Any(er => er.ConflictsWith(r) || r.ConflictsWith(er)))
.ToList();
if (rounds.Count == 0) return null;
var totalWeight = rounds.Sum(r => r.Config.Weight);