From a8da254fcff5a790a4b3b38c07264e9f2613f3c8 Mon Sep 17 00:00:00 2001 From: TheXaman <48356183+TheXaman@users.noreply.github.com> Date: Sun, 15 May 2022 01:17:45 +0200 Subject: [PATCH] new caught pokemon forms (PE) now show the proper gender based sprite, credits @AsparagusEduardo --- src/pokedex.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pokedex.c b/src/pokedex.c index d4cd78e1f1..41b5c13cd3 100644 --- a/src/pokedex.c +++ b/src/pokedex.c @@ -4501,7 +4501,11 @@ static void Task_DisplayCaughtMonDexPage(u8 taskId) gTasks[taskId].tState++; break; case 4: + #ifndef POKEMON_EXPANSION spriteId = CreateMonSpriteFromNationalDexNumber(dexNum, MON_PAGE_X, MON_PAGE_Y, 0); + #else + spriteId = CreateMonPicSprite(species, 0, ((u16)gTasks[taskId].tPersonalityHi << 16) | (u16)gTasks[taskId].tPersonalityLo, TRUE, MON_PAGE_X, MON_PAGE_Y, 0, TAG_NONE); + #endif gSprites[spriteId].oam.priority = 0; BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_BLACK); SetVBlankCallback(gPokedexVBlankCB);