From e7df0acafb692858ea93d5ee427ac6e69f1bd093 Mon Sep 17 00:00:00 2001 From: Eduardo Quezada D'Ottone Date: Sun, 13 Feb 2022 01:56:40 -0300 Subject: [PATCH] =?UTF-8?q?Fixed=20Pok=C3=A9dex=20entry=20upon=20catch=20n?= =?UTF-8?q?ot=20properly=20handling=20gender=20differences?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pokedex.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pokedex.c b/src/pokedex.c index 162afb3c11..5764f300bf 100644 --- a/src/pokedex.c +++ b/src/pokedex.c @@ -3989,7 +3989,10 @@ static void Task_DisplayCaughtMonDexPage(u8 taskId) gTasks[taskId].tState++; break; case 4: - spriteId = CreateMonSpriteFromNationalDexNumber(dexNum, MON_PAGE_X, MON_PAGE_Y, 0); + if ((gBaseStats[dexNum].flags & FLAG_GENDER_DIFFERENCE)) + spriteId = CreateMonPicSprite(dexNum, 0, ((u16)gTasks[taskId].tPersonalityHi << 16) | (u16)gTasks[taskId].tPersonalityLo, TRUE, MON_PAGE_X, MON_PAGE_Y, 0, TAG_NONE); + else + spriteId = CreateMonSpriteFromNationalDexNumber(dexNum, MON_PAGE_X, MON_PAGE_Y, 0); gSprites[spriteId].oam.priority = 0; BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_BLACK); SetVBlankCallback(gPokedexVBlankCB);