mirror of
https://github.com/ppy/osu.git
synced 2025-01-18 06:22:56 +08:00
No more one line return for FailCondition
This commit is contained in:
parent
047c448741
commit
fd1cc34e3f
@ -22,7 +22,12 @@ namespace osu.Game.Rulesets.Osu.Mods
|
||||
[SettingSource("Fail when missing on a slider tail")]
|
||||
public BindableBool SliderTailMiss { get; } = new BindableBool();
|
||||
|
||||
protected override bool FailCondition(HealthProcessor healthProcessor, JudgementResult result) =>
|
||||
(SliderTailMiss.Value && result.HitObject is SliderTailCircle && result.Type == HitResult.IgnoreMiss) || base.FailCondition(healthProcessor, result);
|
||||
protected override bool FailCondition(HealthProcessor healthProcessor, JudgementResult result)
|
||||
{
|
||||
if (SliderTailMiss.Value && result.HitObject is SliderTailCircle && result.Type == HitResult.IgnoreMiss)
|
||||
return true;
|
||||
|
||||
return base.FailCondition(healthProcessor, result);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user