summaryrefslogtreecommitdiff
path: root/engine/battle/move_effects/endure.asm
blob: 00ccb130c9fb37ffe315dfbbca0f450f839e3cc3 (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