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