Skip to content

Commit

Permalink
Fix lazer slider heads not being counted in UR
Browse files Browse the repository at this point in the history
  • Loading branch information
Wieku committed Oct 13, 2024
1 parent 3f0ea21 commit 101b1b7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app/states/components/overlays/scoreoverlay.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,14 @@ func (overlay *ScoreOverlay) hitReceived(c *graphics.Cursor, judgementResult osu

sliderChecks := osu.SliderStart | osu.PositionalMiss

if overlay.ruleset.GetBeatMap().Diff.CheckModActive(difficulty.Lazer) {
sliderChecks |= osu.BaseHits
playerDiff := overlay.ruleset.GetPlayerDifficulty(c)

if playerDiff.CheckModActive(difficulty.Lazer) {
classicConf, confFound := difficulty.GetModConfig[difficulty.ClassicSettings](playerDiff)

if !playerDiff.CheckModActive(difficulty.Classic) || !confFound || !classicConf.NoSliderHeadAccuracy {
sliderChecks |= osu.BaseHits
}
}

_, hC := object.(*objects.Circle)
Expand Down

0 comments on commit 101b1b7

Please sign in to comment.