mirror of https://github.com/pret/pokecrystal.git
24 lines
338 B
NASM
24 lines
338 B
NASM
|
BattleCommand_LockOn: ; 35a53
|
||
|
; lockon
|
||
|
|
||
|
call CheckSubstituteOpp
|
||
|
jr nz, .fail
|
||
|
|
||
|
ld a, [AttackMissed]
|
||
|
and a
|
||
|
jr nz, .fail
|
||
|
|
||
|
ld a, BATTLE_VARS_SUBSTATUS5_OPP
|
||
|
call GetBattleVarAddr
|
||
|
set SUBSTATUS_LOCK_ON, [hl]
|
||
|
call AnimateCurrentMove
|
||
|
|
||
|
ld hl, TookAimText
|
||
|
jp StdBattleTextBox
|
||
|
|
||
|
.fail
|
||
|
call AnimateFailedMove
|
||
|
jp PrintDidntAffect
|
||
|
|
||
|
; 35a74
|