Battle debug menu now checks correct parties depending on battler party (#7652)

This commit is contained in:
grintoul 2025-08-30 21:39:02 +01:00 committed by GitHub
parent 33686c31aa
commit 70068bf314
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -752,7 +752,8 @@ static void PutMovesPointsText(struct BattleDebugMenu *data)
if (gAiLogicData->shouldSwitch & (1u << data->aiBattlerId))
{
u32 switchMon = GetMonData(&gEnemyParty[gAiLogicData->mostSuitableMonId[data->aiBattlerId]], MON_DATA_SPECIES);
struct Pokemon *party = GetBattlerParty(data->aiBattlerId);
u32 switchMon = GetMonData(&party[gAiLogicData->mostSuitableMonId[data->aiBattlerId]], MON_DATA_SPECIES);
AddTextPrinterParameterized(data->aiMovesWindowId, FONT_NORMAL, COMPOUND_STRING("Switching to "), 74, 64, 0, NULL);
AddTextPrinterParameterized(data->aiMovesWindowId, FONT_NORMAL, gSpeciesInfo[switchMon].speciesName, 74 + 68, 64, 0, NULL);
}