mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-20 11:13:35 +01:00
use forced switch battler bit
This commit is contained in:
parent
d7f68a3893
commit
6cdca24c31
@ -30,7 +30,7 @@ static bool32 AI_OpponentCanFaintAiWithMod(u32 healAmount);
|
||||
static bool32 IsAceMon(u32 battlerId, u32 monPartyId)
|
||||
{
|
||||
if (AI_THINKING_STRUCT->aiFlags & AI_FLAG_ACE_POKEMON
|
||||
&& !(gBattleStruct->forcedSwitch)
|
||||
&& !(gBattleStruct->forcedSwitch & gBitTable[battlerId])
|
||||
&& monPartyId == CalculateEnemyPartyCount()-1)
|
||||
return TRUE;
|
||||
return FALSE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user