2013-12-01 19:19:57 +00:00
|
|
|
BattleCommand57: ; 376a0
|
|
|
|
; foresight
|
|
|
|
|
|
|
|
ld a, [AttackMissed]
|
|
|
|
and a
|
|
|
|
jr nz, .failed
|
|
|
|
|
|
|
|
call CheckHiddenOpponent
|
|
|
|
jr nz, .failed
|
|
|
|
|
|
|
|
ld a, BATTLE_VARS_SUBSTATUS1_OPP
|
|
|
|
call _GetBattleVar
|
|
|
|
bit SUBSTATUS_IDENTIFIED, [hl]
|
|
|
|
jr nz, .failed
|
|
|
|
|
|
|
|
set SUBSTATUS_IDENTIFIED, [hl]
|
2014-01-01 13:09:15 +00:00
|
|
|
call AnimateCurrentMove
|
2013-12-01 19:19:57 +00:00
|
|
|
ld hl, IdentifiedText
|
|
|
|
jp StdBattleTextBox
|
|
|
|
|
|
|
|
.failed
|
2013-12-31 09:10:49 +00:00
|
|
|
jp Function37354
|
2013-12-01 19:19:57 +00:00
|
|
|
; 376c2
|
|
|
|
|