pokered/engine/battle/moveEffects/focus_energy_effect.asm

23 lines
483 B
NASM
Raw Normal View History

2016-06-12 00:24:04 +00:00
FocusEnergyEffect_:
2015-08-31 02:38:41 +00:00
ld hl, wPlayerBattleStatus2
ld a, [H_WHOSETURN]
and a
jr z, .notEnemy
2015-08-31 02:38:41 +00:00
ld hl, wEnemyBattleStatus2
.notEnemy
2017-12-29 23:59:48 +00:00
bit GETTING_PUMPED, [hl] ; is mon already using focus energy?
jr nz, .alreadyUsing
2017-12-29 23:59:48 +00:00
set GETTING_PUMPED, [hl] ; mon is now using focus energy
callab PlayCurrentMoveAnimation
ld hl, GettingPumpedText
jp PrintText
.alreadyUsing
ld c, 50
call DelayFrames
2015-07-19 18:56:13 +00:00
jpab PrintButItFailedText_
2016-06-12 00:24:04 +00:00
GettingPumpedText:
2016-07-18 06:17:03 +00:00
TX_DELAY
TX_FAR _GettingPumpedText
db "@"