mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-20 02:14:21 +01:00
Prevents the debug menu beeing opened in battle and breaking the game
This commit is contained in:
parent
be0e576ee6
commit
1cf4824575
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user