Fixed Battle AI debug screen shiny sprites (#3922)
* Switched gBattleMons.isShiny to GetMonData * Simplified getting party of Pokemon --------- Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
This commit is contained in:
parent
4d5c572d0c
commit
bfe3e762ff
1 changed files with 10 additions and 2 deletions
|
@ -769,6 +769,7 @@ static void Task_ShowAiPoints(u8 taskId)
|
|||
u32 i, count;
|
||||
struct WindowTemplate winTemplate;
|
||||
struct BattleDebugMenu *data = GetStructPtr(taskId);
|
||||
struct Pokemon *mon;
|
||||
|
||||
switch (data->aiViewState)
|
||||
{
|
||||
|
@ -800,8 +801,11 @@ static void Task_ShowAiPoints(u8 taskId)
|
|||
data->spriteIds.aiIconSpriteIds[i] = 0xFF;
|
||||
}
|
||||
}
|
||||
|
||||
mon = &GetBattlerParty(data->aiBattlerId)[gBattlerPartyIndexes[data->aiBattlerId]];
|
||||
|
||||
data->aiMonSpriteId = CreateMonPicSprite(gBattleMons[data->aiBattlerId].species,
|
||||
gBattleMons[data->aiBattlerId].isShiny,
|
||||
GetMonData(mon, MON_DATA_IS_SHINY),
|
||||
gBattleMons[data->aiBattlerId].personality,
|
||||
TRUE,
|
||||
39, 130, 15, TAG_NONE);
|
||||
|
@ -926,6 +930,7 @@ static void Task_ShowAiKnowledge(u8 taskId)
|
|||
u32 i, count;
|
||||
struct WindowTemplate winTemplate;
|
||||
struct BattleDebugMenu *data = GetStructPtr(taskId);
|
||||
struct Pokemon *mon;
|
||||
|
||||
switch (data->aiViewState)
|
||||
{
|
||||
|
@ -957,8 +962,11 @@ static void Task_ShowAiKnowledge(u8 taskId)
|
|||
data->spriteIds.aiIconSpriteIds[i] = 0xFF;
|
||||
}
|
||||
}
|
||||
|
||||
mon = &GetBattlerParty(data->aiBattlerId)[gBattlerPartyIndexes[data->aiBattlerId]];
|
||||
|
||||
data->aiMonSpriteId = CreateMonPicSprite(gBattleMons[data->aiBattlerId].species,
|
||||
gBattleMons[data->aiBattlerId].isShiny,
|
||||
GetMonData(mon, MON_DATA_IS_SHINY),
|
||||
gBattleMons[data->aiBattlerId].personality,
|
||||
TRUE,
|
||||
39, 130, 15, TAG_NONE);
|
||||
|
|
Loading…
Reference in a new issue