Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pret
GitHub Repository: pret/pokered
Path: blob/master/engine/battle/move_effects/focus_energy.asm
1271 views
1
FocusEnergyEffect_:
2
ld hl, wPlayerBattleStatus2
3
ldh a, [hWhoseTurn]
4
and a
5
jr z, .notEnemy
6
ld hl, wEnemyBattleStatus2
7
.notEnemy
8
bit GETTING_PUMPED, [hl] ; is mon already using focus energy?
9
jr nz, .alreadyUsing
10
set GETTING_PUMPED, [hl] ; mon is now using focus energy
11
callfar PlayCurrentMoveAnimation
12
ld hl, GettingPumpedText
13
jp PrintText
14
.alreadyUsing
15
ld c, 50
16
call DelayFrames
17
jpfar PrintButItFailedText_
18
19
GettingPumpedText:
20
text_pause
21
text_far _GettingPumpedText
22
text_end
23
24