ported battle_ai_switch_items from pokeem

This commit is contained in:
jiangzhengwenjz
2019-08-03 23:59:41 +08:00
parent 8fed9a5f20
commit 5568895b04
10 changed files with 801 additions and 2720 deletions
+1 -1
View File
@@ -1439,7 +1439,7 @@ static void OpponentHandleChoosePokemon(void)
battler1 = GetBattlerAtPosition(B_POSITION_OPPONENT_LEFT);
battler2 = GetBattlerAtPosition(B_POSITION_OPPONENT_RIGHT);
}
for (chosenMonId = 0; chosenMonId < 6; ++chosenMonId)
for (chosenMonId = 0; chosenMonId < PARTY_SIZE; ++chosenMonId)
if (GetMonData(&gEnemyParty[chosenMonId], MON_DATA_HP) != 0
&& chosenMonId != gBattlerPartyIndexes[battler1]
&& chosenMonId != gBattlerPartyIndexes[battler2])