ref: 2ee8ce26da2d8195be9440335323d7ad9f9a168d
parent: e4845d3d317cd00b97a96038cb7dc069ec0fae0e
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Wed Nov 3 13:07:08 EDT 2021
Comment on the CooltrainerFAI bug Fixes #308
--- a/engine/battle/trainer_ai.asm
+++ b/engine/battle/trainer_ai.asm
@@ -342,7 +342,10 @@
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