mirror of
https://github.com/ppy/osu
synced 2025-02-09 06:36:56 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var catchJudgement = judgement as CatchJudgement;
|
if (judgement is CatchJudgement catchJudgement)
|
||||||
|
Health.Value += Math.Max(catchJudgement.HealthIncrease - hpDrainRate, 0) * harshness;
|
||||||
Health.Value += Math.Max(catchJudgement.HealthIncrease - hpDrainRate, 0) * harshness;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user