shithub: pokecrystal

ref: dc494c3f29d11b73ff6dd2bb5a0624c33e36e5bf
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 AnimateCurrentMove

	ld hl, BracedItselfText
	jp StdBattleTextBox
; 37683