Tweaked GiveBoxMonInitialMoveset

Otherwise, Pokémon would be generated with their evo moves learned.
This commit is contained in:
LOuroboros 2021-12-26 17:11:51 -03:00
parent 86ed53997b
commit 3f010d9aa8

View File

@ -3940,6 +3940,8 @@ void GiveBoxMonInitialMoveset(struct BoxPokemon *boxMon)
{
if (gLevelUpLearnsets[species][i].level > level)
break;
if (gLevelUpLearnsets[species][i].level == 0)
continue;
if (GiveMoveToBoxMon(boxMon, gLevelUpLearnsets[species][i].move) == MON_HAS_MAX_MOVES)
DeleteFirstMoveAndGiveMoveToBoxMon(boxMon, gLevelUpLearnsets[species][i].move);
}