2016-06-12 00:24:04 +00:00
|
|
|
FocusEnergyEffect_:
|
2015-08-31 02:38:41 +00:00
|
|
|
ld hl, wPlayerBattleStatus2
|
2015-04-01 09:41:20 +00:00
|
|
|
ld a, [H_WHOSETURN]
|
|
|
|
and a
|
|
|
|
jr z, .notEnemy
|
2015-08-31 02:38:41 +00:00
|
|
|
ld hl, wEnemyBattleStatus2
|
2015-04-01 09:41:20 +00:00
|
|
|
.notEnemy
|
|
|
|
bit GettingPumped, [hl] ; is mon already using focus energy?
|
|
|
|
jr nz, .alreadyUsing
|
|
|
|
set GettingPumped, [hl] ; mon is now using focus energy
|
|
|
|
callab PlayCurrentMoveAnimation
|
|
|
|
ld hl, GettingPumpedText
|
|
|
|
jp PrintText
|
|
|
|
.alreadyUsing
|
2015-07-03 19:37:53 +00:00
|
|
|
ld c, 50
|
2015-04-01 09:41:20 +00:00
|
|
|
call DelayFrames
|
2015-07-19 18:56:13 +00:00
|
|
|
jpab PrintButItFailedText_
|
2015-04-01 09:41:20 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
GettingPumpedText:
|
2015-04-01 09:41:20 +00:00
|
|
|
db $0a
|
|
|
|
TX_FAR _GettingPumpedText
|
|
|
|
db "@"
|