summaryrefslogtreecommitdiff
path: root/home/hm_moves.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/hm_moves.asm')
-rwxr-xr-xhome/hm_moves.asm25
1 files changed, 25 insertions, 0 deletions
diff --git a/home/hm_moves.asm b/home/hm_moves.asm
new file mode 100755
index 00000000..0e3cafb6
--- /dev/null
+++ b/home/hm_moves.asm
@@ -0,0 +1,25 @@
+; HM moves can't be forgotten
+
+IsHM::
+ cp HM01
+ jr c, .NotHM
+ scf
+ ret
+.NotHM:
+ and a
+ ret
+
+IsHMMove::
+ ld hl, .HMMoves
+ ld de, 1
+ jp IsInArray
+
+.HMMoves:
+ db CUT
+ db FLY
+ db SURF
+ db STRENGTH
+ db FLASH
+ db WATERFALL
+ db WHIRLPOOL
+ db -1 ; end \ No newline at end of file