diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-05 14:40:20 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-05 14:40:20 -0400 |
commit | b30b14f3224e2e96b76ad5cba088eec601a72856 (patch) | |
tree | 6bb69eab5062e76d4850671119a5777d62a5a927 /engine/battle/trainer_ai.asm | |
parent | d9db3d74957c5a96d369db39bd3fa72ba5792d82 (diff) |
Correct comments in AISwitchIfEnoughMons
Fixes #244
Diffstat (limited to 'engine/battle/trainer_ai.asm')
-rw-r--r-- | engine/battle/trainer_ai.asm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/battle/trainer_ai.asm b/engine/battle/trainer_ai.asm index bb1ebc1a..8373ef4f 100644 --- a/engine/battle/trainer_ai.asm +++ b/engine/battle/trainer_ai.asm @@ -549,7 +549,7 @@ AIPrintItemUseAndUpdateHPBar: jp DecrementAICount AISwitchIfEnoughMons: -; enemy trainer switches if there are 3 or more unfainted mons in party +; enemy trainer switches if there are 2 or more unfainted mons in party ld a, [wEnemyPartyCount] ld c, a ld hl, wEnemyMon1HP @@ -573,7 +573,7 @@ AISwitchIfEnoughMons: jr nz, .loop ld a, d ; how many available monsters are there? - cp 2 ; don't bother if only 1 or 2 + cp 2 ; don't bother if only 1 jp nc, SwitchEnemyMon and a ret |