mirror of
https://github.com/ppy/osu
synced 2025-02-03 03:42:15 +00:00
Check for null CatchJudgement
This commit is contained in:
parent
d3ada7914c
commit
785c24b11b
@ -69,9 +69,8 @@ namespace osu.Game.Rulesets.Catch.Scoring
|
||||
return;
|
||||
}
|
||||
|
||||
var catchJudgement = judgement as CatchJudgement;
|
||||
|
||||
Health.Value += Math.Max(catchJudgement.HealthIncrease - hpDrainRate, 0) * harshness;
|
||||
if (judgement is CatchJudgement catchJudgement)
|
||||
Health.Value += Math.Max(catchJudgement.HealthIncrease - hpDrainRate, 0) * harshness;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user