Merge pull request #1432 from toxichead/patch-1

final fix for tutorial i guess
This commit is contained in:
Kade M 2021-07-23 22:20:03 -07:00 committed by GitHub
commit b46ef54396
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4449,10 +4449,15 @@ class PlayState extends MusicBeatState
if (curSong == 'Tutorial' && dad.curCharacter == 'gf')
{
if (curBeat % 2 == 1 && dad.animOffsets.exists('danceLeft'))
dad.playAnim('danceLeft');
if (curBeat % 2 == 0 && dad.animOffsets.exists('danceRight'))
dad.playAnim('danceRight');
if (curStep < 64 || SONG.notes[Math.floor(curStep / 16)].mustHitSection)
dad.dance();
else
{
if (curStep % 2 == 0 && dad.animOffsets.exists('danceLeft'))
dad.playAnim('danceLeft', true);
else if (curStep % 2 == 1 && dad.animOffsets.exists('danceRight'))
dad.playAnim('danceRight', true);
}
}
if (SONG.notes[Math.floor(curStep / 16)] != null)