23 lines
357 B
NASM
Raw Normal View History

2018-06-24 16:09:41 +02:00
BattleCommand_Foresight:
2013-12-01 14:19:57 -05:00
; foresight
2018-01-23 17:39:09 -05:00
ld a, [wAttackMissed]
2013-12-01 14:19:57 -05:00
and a
jr nz, .failed
call CheckHiddenOpponent
jr nz, .failed
ld a, BATTLE_VARS_SUBSTATUS1_OPP
call GetBattleVarAddr
2013-12-01 14:19:57 -05:00
bit SUBSTATUS_IDENTIFIED, [hl]
jr nz, .failed
set SUBSTATUS_IDENTIFIED, [hl]
call AnimateCurrentMove
2013-12-01 14:19:57 -05:00
ld hl, IdentifiedText
2019-04-08 14:15:10 +02:00
jp StdBattleTextbox
2013-12-01 14:19:57 -05:00
.failed
jp FailMove