diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c index 338d203b15..6526bcc7dc 100644 --- a/src/battle_script_commands.c +++ b/src/battle_script_commands.c @@ -9979,9 +9979,15 @@ static void Cmd_displaydexinfo(void) if (!gPaletteFade.active) { FreeAllWindowBuffers(); + #ifndef BATTLE_ENGINE gBattleCommunication[TASK_ID] = DisplayCaughtMonDexPage(species, gBattleMons[gBattlerTarget].otId, gBattleMons[gBattlerTarget].personality); + #else + gBattleCommunication[TASK_ID] = DisplayCaughtMonDexPage(species, + gBattleMons[GetCatchingBattler()].otId, + gBattleMons[GetCatchingBattler()].personality); + #endif gBattleCommunication[0]++; } break;