shithub: pokecrystal

ref: e2838892d69c12fdafe3a40bd7386e7b26506282
dir: /engine/battle/move_effects/focus_energy.asm/

View raw version
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