mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-11-10 23:40:59 +13:00
parent
d9db3d7495
commit
b30b14f322
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue