mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-22 07:02:17 +13:00
caught icon + ai gets to land status
This commit is contained in:
parent
7ddea035df
commit
00efe3c6b4
4 changed files with 35 additions and 6 deletions
|
|
@ -544,12 +544,14 @@ StatModifierDownEffect:
|
|||
ld hl, wPlayerMonStatMods
|
||||
ld de, wEnemyMoveEffect
|
||||
ld bc, wPlayerBattleStatus1
|
||||
ld a, [wLinkState]
|
||||
cp LINK_STATE_BATTLING
|
||||
jr z, .statModifierDownEffect
|
||||
call BattleRandom
|
||||
cp 25 percent + 1 ; chance to miss by in regular battle
|
||||
jp c, MoveMissed
|
||||
;; the below code, when uncommented, restores
|
||||
;; the ai's 25% miss chance on status moves.
|
||||
; ld a, [wLinkState]
|
||||
; cp LINK_STATE_BATTLING
|
||||
; jr z, .statModifierDownEffect
|
||||
; call BattleRandom
|
||||
; cp 25 percent + 1 ; chance to miss by in regular battle
|
||||
; jp c, MoveMissed
|
||||
.statModifierDownEffect
|
||||
call CheckTargetSubstitute ; can't hit through substitute
|
||||
jp nz, MoveMissed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue