shithub: pokecrystal

ref: b8fc67848e1d5911204fa42bbd9b954fdec6228a
dir: /engine/battle/move_effects/endure.asm/

View raw version
BattleCommand_Endure:
; 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