1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-19 21:33:06 +00:00

Merge pull request #2313 from FunkinCrew/bugfix/switch-pattern-typo

Fix a typo in PlayAnimationSongEvent
This commit is contained in:
Eric 2024-05-08 03:24:46 -04:00 committed by GitHub
commit 3142dee553
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,13 +31,13 @@ class PlayAnimationSongEvent extends SongEvent
switch (targetName) switch (targetName)
{ {
case 'boyfriend' || 'bf' || 'player': case 'boyfriend' | 'bf' | 'player':
trace('Playing animation $anim on boyfriend.'); trace('Playing animation $anim on boyfriend.');
target = PlayState.instance.currentStage.getBoyfriend(); target = PlayState.instance.currentStage.getBoyfriend();
case 'dad' || 'opponent': case 'dad' | 'opponent':
trace('Playing animation $anim on dad.'); trace('Playing animation $anim on dad.');
target = PlayState.instance.currentStage.getDad(); target = PlayState.instance.currentStage.getDad();
case 'girlfriend' || 'gf': case 'girlfriend' | 'gf':
trace('Playing animation $anim on girlfriend.'); trace('Playing animation $anim on girlfriend.');
target = PlayState.instance.currentStage.getGirlfriend(); target = PlayState.instance.currentStage.getGirlfriend();
default: default: