Battle Anim Debug Check (#4930)

* battle anim scripts check uncleared Task_UpdateMonBg after anims

---------

Co-authored-by: ghoulslash <pokevoyager0@gmail.com>
This commit is contained in:
ghoulslash 2024-07-08 14:49:13 -04:00 committed by GitHub
parent 0f21415130
commit 49e93799d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -793,6 +793,10 @@ static void Cmd_end(void)
if (!continuousAnim) // May have been used for debug?
{
// Debugging - ensure no hanging mon bg tasks
if (FuncIsActiveTask(Task_UpdateMonBg))
DebugPrintf("Move %d animation still has Task_UpdateMonBg active at the end!", gAnimMoveIndex);
m4aMPlayVolumeControl(&gMPlayInfo_BGM, TRACKS_ALL, 256);
if (!IsContest())
{