Fix shiny animation not respecting illusion mon.
This commit is contained in:
parent
9081f74546
commit
ebc8edd5a6
@ -2484,9 +2484,14 @@ void TryShinyAnimation(u8 battler, struct Pokemon *mon)
|
|||||||
u32 otId, personality;
|
u32 otId, personality;
|
||||||
u32 shinyValue;
|
u32 shinyValue;
|
||||||
u8 taskCirc, taskDgnl;
|
u8 taskCirc, taskDgnl;
|
||||||
|
struct Pokemon* illusionMon;
|
||||||
|
|
||||||
isShiny = FALSE;
|
isShiny = FALSE;
|
||||||
gBattleSpritesDataPtr->healthBoxesData[battler].triedShinyMonAnim = TRUE;
|
gBattleSpritesDataPtr->healthBoxesData[battler].triedShinyMonAnim = TRUE;
|
||||||
|
illusionMon = GetIllusionMonPtr(battler);
|
||||||
|
if (illusionMon != NULL)
|
||||||
|
mon = illusionMon;
|
||||||
|
|
||||||
otId = GetMonData(mon, MON_DATA_OT_ID);
|
otId = GetMonData(mon, MON_DATA_OT_ID);
|
||||||
personality = GetMonData(mon, MON_DATA_PERSONALITY);
|
personality = GetMonData(mon, MON_DATA_PERSONALITY);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user