shithub: pokecrystal

ref: 4ac678313f9c7b9d28774a1a936b8de64350b478
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 GetBattleVarPair
	set SUBSTATUS_ENDURE, [hl]

	call Function0x37e01

	ld hl, BracedItselfText
	jp StdBattleTextBox
; 37683