Update src/battle_controller_opponent.c

This commit is contained in:
Eduardo Quezada D'Ottone 2022-09-18 00:51:34 -03:00 committed by GitHub
parent 293a880238
commit 41ae8ecdb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1701,7 +1701,7 @@ static void OpponentHandleChoosePokemon(void)
&& chosenMonId != gBattlerPartyIndexes[battler2]
&& (!(AI_THINKING_STRUCT->aiFlags & AI_FLAG_ACE_POKEMON)
|| chosenMonId != CalculateEnemyPartyCount() - 1
|| CountAIAliveNonEggMonsExcept(PARTY_SIZE) == pokemonInBattle))
|| CountAIAliveNonEggMonsExcept(PARTY_SIZE) == pokemonInBattle))
{
break;
}