use forced switch battler bit

This commit is contained in:
DizzyEggg 2023-02-16 21:58:00 +01:00
parent d7f68a3893
commit 6cdca24c31

View File

@ -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;