Fix incorrect handling of multi-mod incompatibilities

This commit is contained in:
smoogipoo
2021-02-02 18:31:08 +09:00
parent d0655c21c6
commit 1df412a03c
2 changed files with 25 additions and 1 deletions

View File

@ -47,6 +47,7 @@ namespace osu.Game.Utils
/// <returns>Whether all <see cref="Mod"/>s in the combination are compatible with each-other.</returns>
public static bool CheckCompatibleSet(IEnumerable<Mod> combination, out List<Mod>? invalidMods)
{
combination = FlattenMods(combination);
invalidMods = null;
foreach (var mod in combination)