mirror of
https://github.com/thornAvery/jep-hack.git
synced 2026-02-06 16:15:24 +13:00
First Commit
Upload literally everything from the pokecrystal16 expand-move-ID branch
This commit is contained in:
commit
2f8a41f833
4618 changed files with 480386 additions and 0 deletions
24
engine/battle/move_effects/spikes.asm
Normal file
24
engine/battle/move_effects/spikes.asm
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
BattleCommand_Spikes:
|
||||
ld hl, wEnemyScreens
|
||||
ldh a, [hBattleTurn]
|
||||
and a
|
||||
jr z, .got_screens
|
||||
ld hl, wPlayerScreens
|
||||
.got_screens
|
||||
|
||||
; Fails if spikes are already down!
|
||||
|
||||
bit SCREENS_SPIKES, [hl]
|
||||
jr nz, .failed
|
||||
|
||||
; Nothing else stops it from working.
|
||||
|
||||
set SCREENS_SPIKES, [hl]
|
||||
|
||||
call AnimateCurrentMove
|
||||
|
||||
ld hl, SpikesText
|
||||
jp StdBattleTextbox
|
||||
|
||||
.failed
|
||||
jp FailMove
|
||||
Loading…
Add table
Add a link
Reference in a new issue