improved BE compatibility, credits @AsparagusEduardo

This commit is contained in:
TheXaman 2022-05-15 15:53:48 +02:00
parent a8da254fcf
commit 5ff1dcec9d

View file

@ -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;