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