From 5ff1dcec9dc627cf03784807ae2418725574aa1c Mon Sep 17 00:00:00 2001 From: TheXaman <48356183+TheXaman@users.noreply.github.com> Date: Sun, 15 May 2022 15:53:48 +0200 Subject: [PATCH] improved BE compatibility, credits @AsparagusEduardo --- src/battle_script_commands.c | 6 ++++++ 1 file changed, 6 insertions(+) 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;