Skip to content

Commit 2d6b853

Browse files
authored
Update PlayState.hx (#742)
1 parent 356607f commit 2d6b853

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

source/funkin/game/PlayState.hx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1805,7 +1805,10 @@ class PlayState extends MusicBeatState
18051805

18061806
var event:NoteMissEvent = gameAndCharsEvent("onPlayerMiss", EventManager.get(NoteMissEvent).recycle(note, -10, 1, muteVocalsOnMiss, note != null ? -0.0475 : -0.04, Paths.sound(FlxG.random.getObject(Flags.DEFAULT_MISS_SOUNDS)), FlxG.random.float(0.1, 0.2), note == null, combo > 5, "sad", true, true, "miss", strumLines.members[playerID].characters, playerID, note != null ? note.noteType : null, directionID, 0));
18071807
strumLine.onMiss.dispatch(event);
1808-
if (event.cancelled) return;
1808+
if (event.cancelled) {
1809+
gameAndCharsEvent("onPostPlayerMiss", event);
1810+
return;
1811+
}
18091812

18101813
if (strumLine != null) strumLine.addHealth(event.healthGain);
18111814
if (gf != null && event.gfSad && gf.hasAnimation(event.gfSadAnim))
@@ -1841,6 +1844,8 @@ class PlayState extends MusicBeatState
18411844

18421845
if (event.deleteNote && strumLine != null && note != null)
18431846
strumLine.deleteNote(note);
1847+
1848+
gameAndCharsEvent("onPostPlayerMiss", event);
18441849
}
18451850

18461851
@:dox(hide)

0 commit comments

Comments
 (0)