focus_energy_effect.asm 483 B

1234567891011121314151617181920212223
  1. FocusEnergyEffect_:
  2. ld hl, wPlayerBattleStatus2
  3. ld a, [H_WHOSETURN]
  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. callab PlayCurrentMoveAnimation
  12. ld hl, GettingPumpedText
  13. jp PrintText
  14. .alreadyUsing
  15. ld c, 50
  16. call DelayFrames
  17. jpab PrintButItFailedText_
  18. GettingPumpedText:
  19. TX_DELAY
  20. TX_FAR _GettingPumpedText
  21. db "@"