shithub: pokecrystal

ref: 0b113e5e6a2dfdbc38c223bdfb96b0b1d7b6b0ba
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 GetBattleVarAddr
	set SUBSTATUS_ENDURE, [hl]

	call AnimateCurrentMove

	ld hl, BracedItselfText
	jp StdBattleTextBox
; 37683