From 3f010d9aa8ea40c6481e4e90120db48c2ec8766c Mon Sep 17 00:00:00 2001 From: LOuroboros Date: Sun, 26 Dec 2021 17:11:51 -0300 Subject: [PATCH] =?UTF-8?q?Tweaked=20GiveBoxMonInitialMoveset=20Otherwise,?= =?UTF-8?q?=20Pok=C3=A9mon=20would=20be=20generated=20with=20their=20evo?= =?UTF-8?q?=20moves=20learned.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pokemon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pokemon.c b/src/pokemon.c index a176db3116..96ea4798bb 100644 --- a/src/pokemon.c +++ b/src/pokemon.c @@ -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); }