Fix battle type doubles for debug battle (#9486)
Some checks are pending
CI / build (push) Waiting to run
CI / docs_validate (push) Waiting to run
CI / allcontributors (push) Waiting to run
Docs / deploy (push) Waiting to run

This commit is contained in:
FosterProgramming 2026-03-09 11:18:11 +01:00 committed by GitHub
parent 9b89ffa6f2
commit 53c466dd22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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