Split battle/ into data/ and engine/ components
This commit is contained in:
17
engine/battle/effect_commands/endure.asm
Normal file
17
engine/battle/effect_commands/endure.asm
Normal file
@@ -0,0 +1,17 @@
|
||||
BattleCommand_Endure: ; 3766f
|
||||
; endure
|
||||
|
||||
; Endure shares code with Protect. See protect.asm.
|
||||
|
||||
call ProtectChance
|
||||
ret c
|
||||
|
||||
ld a, BATTLE_VARS_SUBSTATUS1
|
||||
call GetBattleVarAddr
|
||||
set SUBSTATUS_ENDURE, [hl]
|
||||
|
||||
call AnimateCurrentMove
|
||||
|
||||
ld hl, BracedItselfText
|
||||
jp StdBattleTextBox
|
||||
; 37683
|
Reference in New Issue
Block a user