summaryrefslogtreecommitdiff
path: root/battle/effects/endure.asm
blob: ed4329ff5d829dbc7804327cd87406d41a8539fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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