Fix wrong ditto sprite on capture (#8226)

This commit is contained in:
FosterProgramming 2025-11-12 20:00:19 +01:00 committed by GitHub
parent 1545e22d0a
commit 7d778af946
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14271,13 +14271,16 @@ static void Cmd_displaydexinfo(void)
{
CMD_ARGS();
struct Pokemon *mon = GetBattlerMon(GetCatchingBattler());
u32 caughtBattler = GetCatchingBattler();
struct Pokemon *mon = GetBattlerMon(caughtBattler);
u16 species = GetMonData(mon, MON_DATA_SPECIES, NULL);
switch (gBattleCommunication[0])
{
case 0:
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 16, RGB_BLACK);
ClearTemporarySpeciesSpriteData(caughtBattler, FALSE, FALSE);
BattleLoadMonSpriteGfx(mon, caughtBattler);
gBattleCommunication[0]++;
break;
case 1: