mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 12:14:20 +01:00
Tweaked GiveBoxMonInitialMoveset
Otherwise, Pokémon would be generated with their evo moves learned.
This commit is contained in:
parent
86ed53997b
commit
3f010d9aa8
@ -3940,6 +3940,8 @@ void GiveBoxMonInitialMoveset(struct BoxPokemon *boxMon)
|
|||||||
{
|
{
|
||||||
if (gLevelUpLearnsets[species][i].level > level)
|
if (gLevelUpLearnsets[species][i].level > level)
|
||||||
break;
|
break;
|
||||||
|
if (gLevelUpLearnsets[species][i].level == 0)
|
||||||
|
continue;
|
||||||
if (GiveMoveToBoxMon(boxMon, gLevelUpLearnsets[species][i].move) == MON_HAS_MAX_MOVES)
|
if (GiveMoveToBoxMon(boxMon, gLevelUpLearnsets[species][i].move) == MON_HAS_MAX_MOVES)
|
||||||
DeleteFirstMoveAndGiveMoveToBoxMon(boxMon, gLevelUpLearnsets[species][i].move);
|
DeleteFirstMoveAndGiveMoveToBoxMon(boxMon, gLevelUpLearnsets[species][i].move);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user