You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Move-unique effect commands consistently go in engine/battle/move_effects/
This commit is contained in:
23
engine/battle/move_effects/lock_on.asm
Normal file
23
engine/battle/move_effects/lock_on.asm
Normal file
@@ -0,0 +1,23 @@
|
||||
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
|
||||
Reference in New Issue
Block a user