From e8e52a199b0ae403dbcb7ea7f343a8149e484153 Mon Sep 17 00:00:00 2001 From: Flametix <44883711+Flametix@users.noreply.github.com> Date: Mon, 1 May 2023 17:15:59 -0400 Subject: [PATCH] Set gIsDebugBattle to false after battle --- src/battle_setup.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/battle_setup.c b/src/battle_setup.c index 6c3b8d05572..68c3d90ac97 100644 --- a/src/battle_setup.c +++ b/src/battle_setup.c @@ -46,6 +46,7 @@ #include "constants/trainers.h" #include "constants/trainer_hill.h" #include "constants/weather.h" +#include "debug.h" enum { TRANSITION_TYPE_NORMAL, @@ -1392,6 +1393,9 @@ void BattleSetup_StartTrainerBattle_Debug(void) static void CB2_EndTrainerBattle(void) { + #if TX_DEBUG_SYSTEM_ENABLE == TRUE + gIsDebugBattle = FALSE; + #endif if (gTrainerBattleOpponent_A == TRAINER_SECRET_BASE) { SetMainCallback2(CB2_ReturnToFieldContinueScriptPlayMapMusic);