mirror of
https://github.com/rh-hideout/pokeemerald-expansion.git
synced 2026-04-26 10:25:49 -05:00
Fix battle type doubles for debug battle (#9486)
This commit is contained in:
parent
9b89ffa6f2
commit
53c466dd22
|
|
@ -4911,6 +4911,8 @@ static void DebugAction_Party_BattleSingle(u8 taskId)
|
||||||
CreateNPCTrainerPartyFromTrainer(gEnemyParty, GetDebugAiTrainer(), FALSE, BATTLE_TYPE_TRAINER);
|
CreateNPCTrainerPartyFromTrainer(gEnemyParty, GetDebugAiTrainer(), FALSE, BATTLE_TYPE_TRAINER);
|
||||||
|
|
||||||
gBattleTypeFlags = 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;
|
gDebugAIFlags = sDebugTrainers[DIFFICULTY_NORMAL][DEBUG_TRAINER_AI].aiFlags;
|
||||||
gIsDebugBattle = TRUE;
|
gIsDebugBattle = TRUE;
|
||||||
gBattleEnvironment = BattleSetup_GetEnvironmentId();
|
gBattleEnvironment = BattleSetup_GetEnvironmentId();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user