shithub: pokecrystal

ref: 07e8efee7ea19a5ae09ccceb193e1f7e8dec64b1
dir: /engine/battle/move_effects/endure.asm/

View raw version
BattleCommand_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