Disallow adding to score after the player has failed

This commit is contained in:
iiSaLMaN
2019-08-07 19:58:26 +03:00
parent 73cd7b0cc2
commit c77e6074f6

View File

@ -316,6 +316,9 @@ namespace osu.Game.Rulesets.Scoring
/// <param name="result">The <see cref="JudgementResult"/> to apply.</param> /// <param name="result">The <see cref="JudgementResult"/> to apply.</param>
protected virtual void ApplyResult(JudgementResult result) protected virtual void ApplyResult(JudgementResult result)
{ {
if (HasFailed)
return;
result.ComboAtJudgement = Combo.Value; result.ComboAtJudgement = Combo.Value;
result.HighestComboAtJudgement = HighestCombo.Value; result.HighestComboAtJudgement = HighestCombo.Value;
result.HealthAtJudgement = Health.Value; result.HealthAtJudgement = Health.Value;