1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-19 03:32:54 +08:00
osu-lazer/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 17:19:50 +08:00
2020-03-02 12:25:56 +08:00
using osu.Game.Rulesets.Catch.Judgements;
using osu.Game.Rulesets.Judgements;
2018-04-13 17:19:50 +08:00
using osu.Game.Rulesets.Mods;
2020-03-02 12:25:56 +08:00
using osu.Game.Rulesets.Scoring;
2018-04-13 17:19:50 +08:00
namespace osu.Game.Rulesets.Catch.Mods
{
public class CatchModPerfect : ModPerfect
{
2020-03-02 12:25:56 +08:00
protected override bool FailCondition(HealthProcessor healthProcessor, JudgementResult result)
=> !(result.Judgement is CatchBananaJudgement)
&& base.FailCondition(healthProcessor, result);
2018-04-13 17:19:50 +08:00
}
}