summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2021-11-03 17:07:08 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2021-11-03 17:07:08 -0400
commit2ee8ce26da2d8195be9440335323d7ad9f9a168d (patch)
tree7b01e7da2bc36c731671343420a6870581a8924b
parente4845d3d317cd00b97a96038cb7dc069ec0fae0e (diff)
Comment on the CooltrainerFAI bug
Fixes #308
-rw-r--r--engine/battle/trainer_ai.asm3
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/battle/trainer_ai.asm b/engine/battle/trainer_ai.asm
index 0117a057..2ef60f5b 100644
--- a/engine/battle/trainer_ai.asm
+++ b/engine/battle/trainer_ai.asm
@@ -342,7 +342,10 @@ CooltrainerMAI:
jp AIUseXAttack
CooltrainerFAI:
+ ; The intended 25% chance to consider switching will not apply.
+ ; Uncomment the line below to fix this.
cp 25 percent + 1
+ ; ret nc
ld a, 10
call AICheckIfHPBelowFraction
jp c, AIUseHyperPotion