mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
b83f237254
Functions prefixed with _ imply they're private. The real purpose of this function is to use an address, rather than saving a few cycles on push/pop.
19 lines
279 B
NASM
19 lines
279 B
NASM
BattleCommand5a: ; 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
|
|
|