Skip to content

Commit

Permalink
Merge pull request #28949 from peppy/hold-off-incompatibility
Browse files Browse the repository at this point in the history
Make "Hold Off" and "No Release" mod incompatible
  • Loading branch information
bdach committed Jul 19, 2024
2 parents 41bad54 + ce0397a commit 2bd4a5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.Mania/Mods/ManiaModHoldOff.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class ManiaModHoldOff : Mod, IApplicableAfterBeatmapConversion

public override ModType Type => ModType.Conversion;

public override Type[] IncompatibleMods => new[] { typeof(ManiaModInvert) };
public override Type[] IncompatibleMods => new[] { typeof(ManiaModInvert), typeof(ManiaModNoRelease) };

public void ApplyToBeatmap(IBeatmap beatmap)
{
Expand Down
3 changes: 3 additions & 0 deletions osu.Game.Rulesets.Mania/Mods/ManiaModNoRelease.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.

using System;
using System.Linq;
using System.Threading;
using osu.Framework.Localisation;
Expand All @@ -27,6 +28,8 @@ public partial class ManiaModNoRelease : Mod, IApplicableAfterBeatmapConversion,

public override ModType Type => ModType.DifficultyReduction;

public override Type[] IncompatibleMods => new[] { typeof(ManiaModHoldOff) };

public void ApplyToBeatmap(IBeatmap beatmap)
{
var maniaBeatmap = (ManiaBeatmap)beatmap;
Expand Down

0 comments on commit 2bd4a5e

Please sign in to comment.