mirror of
https://github.com/pret/pokeemerald.git
synced 2026-10-01 06:17:43 -05:00
Consolidated funcs, renamed CanMonLearnMove
This commit is contained in:
@@ -338,7 +338,7 @@ static u16 GetRandomAlternateMove(u8 monId)
|
||||
const struct LevelUpMove *learnset;
|
||||
bool32 needTMs = FALSE;
|
||||
u16 moveId = MOVE_NONE;
|
||||
bool32 shouldUseMove;
|
||||
bool8 shouldUseMove;
|
||||
u8 level;
|
||||
|
||||
id = APPRENTICE_SPECIES_ID(monId);
|
||||
@@ -376,7 +376,7 @@ static u16 GetRandomAlternateMove(u8 monId)
|
||||
do
|
||||
{
|
||||
id = Random() % (NUM_TECHNICAL_MACHINES + NUM_HIDDEN_MACHINES);
|
||||
shouldUseMove = CanSpeciesLearnTaughtMove(species, ItemIdToBattleMoveId(ITEM_TM01 + id));
|
||||
shouldUseMove = CanLearnTaughtMove(species, ItemIdToBattleMoveId(ITEM_TM01 + id));
|
||||
}
|
||||
while (!shouldUseMove);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user