Skip to content

Commit

Permalink
Merge pull request #2475 from Bassoonian/gen9moves
Browse files Browse the repository at this point in the history
Set FLAG_SYS_POKEMON_GET when debug gifting yourself a Pokémon
  • Loading branch information
AsparagusEduardo authored Dec 11, 2022
2 parents e3e0d60 + 07a8af5 commit db32032
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -2178,6 +2178,8 @@ static void DebugAction_Give_Pokemon_SelectLevel(u8 taskId)
{
PlaySE(MUS_LEVEL_UP);
ScriptGiveMon(sDebugMonData->mon_speciesId, gTasks[taskId].data[3], ITEM_NONE, 0,0,0);
//Set flag for user convenience
FlagSet(FLAG_SYS_POKEMON_GET);
Free(sDebugMonData); //Frees EWRAM of MonData Struct
DebugAction_DestroyExtraWindow(taskId);
}
Expand Down Expand Up @@ -2732,6 +2734,9 @@ static void DebugAction_Give_Pokemon_ComplexCreateMon(u8 taskId) //https://githu
break;
}

//Set flag for user convenience
FlagSet(FLAG_SYS_POKEMON_GET);

Free(sDebugMonData); //Frees EWRAM of MonData Struct
DebugAction_DestroyExtraWindow(taskId); //return sentToPc;
}
Expand Down

0 comments on commit db32032

Please sign in to comment.