From 53c466dd222c892c0322610e9deebc8cd8d96ece Mon Sep 17 00:00:00 2001 From: FosterProgramming Date: Mon, 9 Mar 2026 11:18:11 +0100 Subject: [PATCH] Fix battle type doubles for debug battle (#9486) --- src/debug.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/debug.c b/src/debug.c index a2d7acb834..6ac93e3fa4 100644 --- a/src/debug.c +++ b/src/debug.c @@ -4911,6 +4911,8 @@ static void DebugAction_Party_BattleSingle(u8 taskId) CreateNPCTrainerPartyFromTrainer(gEnemyParty, GetDebugAiTrainer(), FALSE, BATTLE_TYPE_TRAINER); gBattleTypeFlags = BATTLE_TYPE_TRAINER; + if (sDebugTrainers[DIFFICULTY_NORMAL][DEBUG_TRAINER_AI].battleType == TRAINER_BATTLE_TYPE_DOUBLES) + gBattleTypeFlags |= BATTLE_TYPE_DOUBLE; gDebugAIFlags = sDebugTrainers[DIFFICULTY_NORMAL][DEBUG_TRAINER_AI].aiFlags; gIsDebugBattle = TRUE; gBattleEnvironment = BattleSetup_GetEnvironmentId();