mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Fix a bunch of single player battle engine bugs
went through a bunch of the tutorials here; https://github.com/pret/pokered/wiki/Bugs-and-Glitches#blaine-uses-super-potion-even-when-his-pok%C3%A9mon-arent-below-10-health Overall: - Blaine is no longer addicted to Super Potions - CoolTrainerF no longer switches a lot - Transformed Pokemon aren't presumed to be Dittos (very important given Animon) - Status curing items don't remove modifiers anymore - Learning new moves plays the sound in the correct bank
This commit is contained in:
parent
cab111d01b
commit
7c6bbb630f
3 changed files with 37 additions and 7 deletions
|
|
@ -345,7 +345,7 @@ CooltrainerFAI:
|
|||
; The intended 25% chance to consider switching will not apply.
|
||||
; Uncomment the line below to fix this.
|
||||
cp 25 percent + 1
|
||||
; ret nc
|
||||
ret nc ; fixes the bug
|
||||
ld a, 10
|
||||
call AICheckIfHPBelowFraction
|
||||
jp c, AIUseHyperPotion
|
||||
|
|
@ -387,6 +387,9 @@ KogaAI:
|
|||
BlaineAI:
|
||||
cp 25 percent + 1
|
||||
ret nc
|
||||
ld a, 10
|
||||
call AICheckIfHPBelowFraction
|
||||
ret nc ; this fixes the super potion thing - PvK
|
||||
jp AIUseSuperPotion
|
||||
|
||||
SabrinaAI:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue