mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-22 12:23:48 +01:00
some IsBattlerAIControlled replacements w BattlerHasAi
This commit is contained in:
parent
10ef3e8348
commit
e49bb21ee4
@ -537,7 +537,7 @@ void ClearBattlerItemEffectHistory(u8 battlerId)
|
||||
|
||||
void SaveBattlerData(u8 battlerId)
|
||||
{
|
||||
if (!IsBattlerAIControlled(battlerId))
|
||||
if (!BattlerHasAi(battlerId))
|
||||
{
|
||||
u32 i;
|
||||
|
||||
@ -588,7 +588,7 @@ static bool32 ShouldFailForIllusion(u16 illusionSpecies, u32 battlerId)
|
||||
|
||||
void SetBattlerData(u8 battlerId)
|
||||
{
|
||||
if (!IsBattlerAIControlled(battlerId))
|
||||
if (!BattlerHasAi(battlerId))
|
||||
{
|
||||
u32 i, species, illusionSpecies;
|
||||
|
||||
@ -631,7 +631,7 @@ void SetBattlerData(u8 battlerId)
|
||||
|
||||
void RestoreBattlerData(u8 battlerId)
|
||||
{
|
||||
if (!IsBattlerAIControlled(battlerId))
|
||||
if (!BattlerHasAi(battlerId))
|
||||
{
|
||||
u32 i;
|
||||
|
||||
|
@ -7036,7 +7036,7 @@ static void Cmd_switchineffects(void)
|
||||
gHitMarker &= ~HITMARKER_FAINTED(gActiveBattler);
|
||||
gSpecialStatuses[gActiveBattler].faintedHasReplacement = FALSE;
|
||||
|
||||
if (!IsBattlerAIControlled(gActiveBattler))
|
||||
if (!BattlerHasAi(gActiveBattler))
|
||||
gBattleStruct->appearedInBattle |= gBitTable[gBattlerPartyIndexes[gActiveBattler]];
|
||||
|
||||
// Neutralizing Gas announces itself before hazards
|
||||
|
Loading…
x
Reference in New Issue
Block a user