pokecrystal-board/battle/effects/foresight.asm

25 lines
370 B
NASM
Raw Normal View History

2013-12-01 11:19:57 -08:00
BattleCommand57: ; 376a0
; foresight
ld a, [AttackMissed]
and a
jr nz, .failed
call CheckHiddenOpponent
jr nz, .failed
ld a, BATTLE_VARS_SUBSTATUS1_OPP
call GetBattleVarAddr
2013-12-01 11:19:57 -08:00
bit SUBSTATUS_IDENTIFIED, [hl]
jr nz, .failed
set SUBSTATUS_IDENTIFIED, [hl]
call AnimateCurrentMove
2013-12-01 11:19:57 -08:00
ld hl, IdentifiedText
jp StdBattleTextBox
.failed
jp Function37354
2013-12-01 11:19:57 -08:00
; 376c2