From 7d778af9462934c1870090d71cda5b2ec0c3a3a5 Mon Sep 17 00:00:00 2001 From: FosterProgramming Date: Wed, 12 Nov 2025 20:00:19 +0100 Subject: [PATCH] Fix wrong ditto sprite on capture (#8226) --- src/battle_script_commands.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c index dd8b2d17f2..d0bee7dd4a 100755 --- a/src/battle_script_commands.c +++ b/src/battle_script_commands.c @@ -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: