From d0ace2c171f7437f8c45c9bf6b211a75e267cd02 Mon Sep 17 00:00:00 2001 From: lunarcleint <88809950+lunarcleint@users.noreply.github.com> Date: Sun, 4 Feb 2024 14:56:25 -0700 Subject: [PATCH] note.avoid works --- source/funkin/game/StrumLine.hx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/funkin/game/StrumLine.hx b/source/funkin/game/StrumLine.hx index af3a5f31..1ab58628 100644 --- a/source/funkin/game/StrumLine.hx +++ b/source/funkin/game/StrumLine.hx @@ -185,15 +185,16 @@ class StrumLine extends FlxTypedGroup { daNote.tooLate = true; } - if (cpu && PlayState.instance.__updateNote_event.__autoCPUHit && !daNote.wasGoodHit && daNote.strumTime < songPosition) PlayState.instance.goodNoteHit(this, daNote); + if (cpu && PlayState.instance.__updateNote_event.__autoCPUHit && !daNote.avoid&& !daNote.wasGoodHit && daNote.strumTime < songPosition) PlayState.instance.goodNoteHit(this, daNote); if (daNote.wasGoodHit && daNote.isSustainNote && daNote.strumTime + (daNote.sustainLength) < songPosition) { deleteNote(daNote); return; } - if (daNote.tooLate && !cpu) { - PlayState.instance.noteMiss(this, daNote); + if (daNote.tooLate) { + if (!cpu) PlayState.instance.noteMiss(this, daNote); + else deleteNote(daNote); return; }