mirror of
https://github.com/pret/pokeemerald.git
synced 2026-03-21 17:54:57 -05:00
Follow up for anim issue in doubles (#8894)
This commit is contained in:
parent
36701d2eae
commit
d9b31444c2
|
|
@ -813,8 +813,6 @@ bool32 InitSpritePosToAnimBattler(u32 animBattlerId, struct Sprite *sprite, bool
|
|||
|
||||
bool8 IsBattlerSpritePresent(u8 battler)
|
||||
{
|
||||
if (GetMonData(GetBattlerMon(battler), MON_DATA_SPECIES) == SPECIES_NONE)
|
||||
return FALSE;
|
||||
if (IsContest())
|
||||
{
|
||||
if (gBattleAnimAttacker == battler)
|
||||
|
|
@ -831,6 +829,10 @@ bool8 IsBattlerSpritePresent(u8 battler)
|
|||
|
||||
if (gBattleStruct->battlerState[battler].fainted)
|
||||
return FALSE;
|
||||
|
||||
if (gAbsentBattlerFlags & 1u << battler)
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user