From 49e93799d1de4f52a2b668774f793a2f565ec35a Mon Sep 17 00:00:00 2001 From: ghoulslash <41651341+ghoulslash@users.noreply.github.com> Date: Mon, 8 Jul 2024 14:49:13 -0400 Subject: [PATCH] Battle Anim Debug Check (#4930) * battle anim scripts check uncleared Task_UpdateMonBg after anims --------- Co-authored-by: ghoulslash --- src/battle_anim.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/battle_anim.c b/src/battle_anim.c index f53e424a4d..77ee730c0c 100644 --- a/src/battle_anim.c +++ b/src/battle_anim.c @@ -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()) {