You have to make the event cancelable first.

This commit is contained in:
Eric
2025-10-07 20:08:51 -05:00
committed by Abnormal
parent 99ad396fa3
commit c6bdd753df
+1 -1
View File
@@ -1200,7 +1200,7 @@ class PlayState extends MusicBeatSubState
Events.logFailSong(currentSong.id, currentVariation);
#end
var event:ScriptEvent = new ScriptEvent(GAME_OVER);
var event:ScriptEvent = new ScriptEvent(GAME_OVER, true);
dispatchEvent(event);
if (event.eventCanceled) return;