shithub: pokecrystal

ref: d7bf70f3c902ce9380e05ccd6828b5e8973d4ae1
dir: /battle/effects/endure.asm/

View raw version
BattleCommand5a: ; 3766f
; endure

; Endure shares code with Protect. See protect.asm.

	call ProtectChance
	ret c

	ld a, BATTLE_VARS_SUBSTATUS1
	call _GetBattleVar
	set SUBSTATUS_ENDURE, [hl]

	call Function0x37e01

	ld hl, BracedItselfText
	jp StdBattleTextBox
; 37683