mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
b437aaf329
this is easier than combining protect and endure
19 lines
276 B
NASM
19 lines
276 B
NASM
BattleCommand5a: ; 3766f
|
|
; endure
|
|
|
|
; Endure shares code with Protect. See protect.asm.
|
|
|
|
call ProtectChance
|
|
ret c
|
|
|
|
ld a, BATTLE_VARS_SUBSTATUS1
|
|
call GetBattleVarPair
|
|
set SUBSTATUS_ENDURE, [hl]
|
|
|
|
call Function0x37e01
|
|
|
|
ld hl, BracedItselfText
|
|
jp StdBattleTextBox
|
|
; 37683
|
|
|