Prevents the debug menu beeing opened in battle and breaking the game

This commit is contained in:
TheXaman 2021-12-04 10:57:40 +01:00
parent be0e576ee6
commit 1cf4824575

View File

@ -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();