diff --git a/Repeated-Field-Medicine-Use.md b/Repeated-Field-Medicine-Use.md index d9d8e90..faeea27 100644 --- a/Repeated-Field-Medicine-Use.md +++ b/Repeated-Field-Medicine-Use.md @@ -105,7 +105,11 @@ You may also want to use this for Rare Candies, so what you have to do is find ` static void PartyMenuTryEvolution(u8 taskId) { struct Pokemon *mon = &gPlayerParty[gPartyMenu.slotId]; +#ifdef POKEMON_EXPANSION + u16 targetSpecies = GetEvolutionTargetSpecies(mon, EVO_MODE_NORMAL, ITEM_NONE, NULL); +#else u16 targetSpecies = GetEvolutionTargetSpecies(mon, EVO_MODE_NORMAL, ITEM_NONE); +#endif if (targetSpecies != SPECIES_NONE) { @@ -126,7 +130,7 @@ static void PartyMenuTryEvolution(u8 taskId) } } ``` -Then add the function, `CB2_ReturnToPartyMenuUsingRareCandy`, somewhere in the file: +Then add the function, `CB2_ReturnToPartyMenuUsingRareCandy`, somewhere in the file above `PartyMenuTryEvolution`: ```c static void CB2_ReturnToPartyMenuUsingRareCandy(void) {