ref: 2354c41a96bdf80861338add2f0b3a67b18f160e
dir: /engine/battle/move_effects/lock_on.asm/
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