Merge pull request #23 from AsparagusEduardo/tx_dexFix

Fixed dex showing incorrect moves when using PE and BE
This commit is contained in:
TheXaman 2022-05-08 12:02:55 +02:00 committed by GitHub
commit fe63251b51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5277,7 +5277,7 @@ bool8 SpeciesCanLearnLvlUpMove(u16 species, u16 move) //Move search PokedexPlus
#if defined (BATTLE_ENGINE) || defined (POKEMON_EXPANSION)
for (j = 0; j < MAX_LEVEL_UP_MOVES && gLevelUpLearnsets[species][j].move != LEVEL_UP_END; j++)
{
if (move == (gLevelUpLearnsets[species][j].move & LEVEL_UP_MOVE_ID))
if (move == (gLevelUpLearnsets[species][j].move))
{
return TRUE;
}