pokecrystal-board/engine/battle/move_effects/lock_on.asm
mid-kid 3e78e5b2b6 TextBox -> Textbox
Homogenizing names.
2019-04-09 16:09:18 +02:00

22 lines
322 B
NASM

BattleCommand_LockOn:
; lockon
call CheckSubstituteOpp
jr nz, .fail
ld a, [wAttackMissed]
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