mirror of
https://github.com/pret/pokeemerald.git
synced 2026-05-05 21:07:17 -05:00
Battle debug menu now checks correct parties depending on battler party (#7652)
This commit is contained in:
parent
33686c31aa
commit
70068bf314
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user