pokecrystal/battle/effects/foresight.asm

24 lines
377 B
NASM
Raw Normal View History

BattleCommand_Foresight: ; 376a0
2013-12-01 19:19:57 +00:00
; 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 19:19:57 +00:00
bit SUBSTATUS_IDENTIFIED, [hl]
jr nz, .failed
set SUBSTATUS_IDENTIFIED, [hl]
call AnimateCurrentMove
2013-12-01 19:19:57 +00:00
ld hl, IdentifiedText
jp StdBattleTextBox
.failed
2015-11-09 21:41:09 +00:00
jp FailForesight
2013-12-01 19:19:57 +00:00
; 376c2