diff options
author | jiangzhengwenjz <jiangzhengwenjzw@qq.com> | 2019-08-03 23:59:41 +0800 |
---|---|---|
committer | jiangzhengwenjz <jiangzhengwenjzw@qq.com> | 2019-08-03 23:59:41 +0800 |
commit | 5568895b043dc37e95be0e99787541d78a7c6fee (patch) | |
tree | 719b85960d6e9c7b8add6a141fa503925290a5c9 /src/battle_controller_opponent.c | |
parent | 8fed9a5f205cec0d86149a908d64f73316cbb1f4 (diff) |
ported battle_ai_switch_items from pokeem
Diffstat (limited to 'src/battle_controller_opponent.c')
-rw-r--r-- | src/battle_controller_opponent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/battle_controller_opponent.c b/src/battle_controller_opponent.c index 535715999..cd0cc70ad 100644 --- a/src/battle_controller_opponent.c +++ b/src/battle_controller_opponent.c @@ -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]) |