mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Removed unnecessary JudgementResult casts
This commit is contained in:
@ -40,8 +40,7 @@ namespace osu.Game.Rulesets.Catch.Scoring
|
||||
return;
|
||||
}
|
||||
|
||||
if (result.Judgement is CatchJudgement catchJudgement)
|
||||
Health.Value += Math.Max(catchJudgement.HealthIncreaseFor(result) - hpDrainRate, 0) * harshness;
|
||||
Health.Value += Math.Max(result.Judgement.HealthIncreaseFor(result) - hpDrainRate, 0) * harshness;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user