shithub: pokecrystal

ref: 38ede6d7f04414d995c13198efb9485d34f17004
dir: /engine/battle/move_effects/endure.asm/

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