osu/osu.Game.Rulesets.Catch/Mods/CatchModPerfect.cs

18 lines
621 B
C#
Raw Normal View History

// 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.
2018-04-13 09:19:50 +00:00
2020-03-02 04:25:56 +00:00
using osu.Game.Rulesets.Catch.Judgements;
using osu.Game.Rulesets.Judgements;
2018-04-13 09:19:50 +00:00
using osu.Game.Rulesets.Mods;
2020-03-02 04:25:56 +00:00
using osu.Game.Rulesets.Scoring;
2018-04-13 09:19:50 +00:00
namespace osu.Game.Rulesets.Catch.Mods
{
public class CatchModPerfect : ModPerfect
{
2020-03-02 04:25:56 +00:00
protected override bool FailCondition(HealthProcessor healthProcessor, JudgementResult result)
=> !(result.Judgement is CatchBananaJudgement)
&& base.FailCondition(healthProcessor, result);
2018-04-13 09:19:50 +00:00
}
}