summaryrefslogtreecommitdiff
path: root/engine/battle/move_effects/focus_energy.asm
blob: c4eb1f334192739ac63a410d4f51e61451d5e3c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
BattleCommand_FocusEnergy:
; focusenergy

	ld a, BATTLE_VARS_SUBSTATUS4
	call GetBattleVarAddr
	bit SUBSTATUS_FOCUS_ENERGY, [hl]
	jr nz, .already_pumped
	set SUBSTATUS_FOCUS_ENERGY, [hl]
	call AnimateCurrentMove
	ld hl, GettingPumpedText
	jp StdBattleTextbox

.already_pumped
	call AnimateFailedMove
	jp PrintButItFailed