Fixed Pokédex entry upon catch not properly handling gender differences
This commit is contained in:
parent
b86694876c
commit
e7df0acafb
1 changed files with 4 additions and 1 deletions
|
@ -3989,7 +3989,10 @@ static void Task_DisplayCaughtMonDexPage(u8 taskId)
|
||||||
gTasks[taskId].tState++;
|
gTasks[taskId].tState++;
|
||||||
break;
|
break;
|
||||||
case 4:
|
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;
|
gSprites[spriteId].oam.priority = 0;
|
||||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_BLACK);
|
BeginNormalPaletteFade(PALETTES_ALL, 0, 0x10, 0, RGB_BLACK);
|
||||||
SetVBlankCallback(gPokedexVBlankCB);
|
SetVBlankCallback(gPokedexVBlankCB);
|
||||||
|
|
Loading…
Reference in a new issue