mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-11-13 08:44:49 +13:00
parent
d9db3d7495
commit
b30b14f322
|
|
@ -549,7 +549,7 @@ AIPrintItemUseAndUpdateHPBar:
|
||||||
jp DecrementAICount
|
jp DecrementAICount
|
||||||
|
|
||||||
AISwitchIfEnoughMons:
|
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 a, [wEnemyPartyCount]
|
||||||
ld c, a
|
ld c, a
|
||||||
ld hl, wEnemyMon1HP
|
ld hl, wEnemyMon1HP
|
||||||
|
|
@ -573,7 +573,7 @@ AISwitchIfEnoughMons:
|
||||||
jr nz, .loop
|
jr nz, .loop
|
||||||
|
|
||||||
ld a, d ; how many available monsters are there?
|
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
|
jp nc, SwitchEnemyMon
|
||||||
and a
|
and a
|
||||||
ret
|
ret
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue