From 1cf482457573789e806fbf749b5ad05138ebe611 Mon Sep 17 00:00:00 2001 From: TheXaman <48356183+TheXaman@users.noreply.github.com> Date: Sat, 4 Dec 2021 10:57:40 +0100 Subject: [PATCH] Prevents the debug menu beeing opened in battle and breaking the game --- src/pokemon_summary_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pokemon_summary_screen.c b/src/pokemon_summary_screen.c index ce1e280bd..350bfa29c 100644 --- a/src/pokemon_summary_screen.c +++ b/src/pokemon_summary_screen.c @@ -1557,7 +1557,7 @@ static void Task_HandleInput(u8 taskId) BeginCloseSummaryScreen(taskId); } #if P_ENABLE_DEBUG == TRUE - else if (JOY_NEW(SELECT_BUTTON)) + else if (JOY_NEW(SELECT_BUTTON) && !gMain.inBattle) { sMonSummaryScreen->callback = CB2_Debug_Pokemon; StopPokemonAnimations();