From 7e1ee6151f2cc53020b86dad0c3e73c4c0c12ebd Mon Sep 17 00:00:00 2001 From: Peter-io <93472377+Peter-io@users.noreply.github.com> Date: Thu, 11 Jul 2024 17:50:02 +0200 Subject: [PATCH] Pass mod class that cause fail --- osu.Game/Rulesets/Mods/ModFailCondition.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Game/Rulesets/Mods/ModFailCondition.cs b/osu.Game/Rulesets/Mods/ModFailCondition.cs index 0b229766c1..fab592d59c 100644 --- a/osu.Game/Rulesets/Mods/ModFailCondition.cs +++ b/osu.Game/Rulesets/Mods/ModFailCondition.cs @@ -20,7 +20,7 @@ namespace osu.Game.Rulesets.Mods public virtual bool RestartOnFail => Restart.Value; - private Action? triggerFailureDelegate; + private Action? triggerFailureDelegate; public void ApplyToHealthProcessor(HealthProcessor healthProcessor) { @@ -31,7 +31,7 @@ namespace osu.Game.Rulesets.Mods /// /// Immediately triggers a failure on the loaded . /// - protected void TriggerFailure() => triggerFailureDelegate?.Invoke(); + protected void TriggerFailure() => triggerFailureDelegate?.Invoke(this); /// /// Determines whether should trigger a failure. Called every time a