shithub: pokecrystal

Download patch

ref: 595127ba65317674c6f6d6d469d645df0fa40fe6
parent: 0aac0f9cfc5bc95b378d0c33cb047f136cd361b7
author: mid-kid <esteve.varela@gmail.com>
date: Sat Jul 28 08:14:04 EDT 2018

anim_ret_command is an index in a table after all

For some reason I thought BattleAnim_Ret was never used, due to how the
battle anim loop would be exited early from. It seems I was wrong.
Removing commands before anim_ret without it being part of the `enum`
seems to break things.

--- a/macros/scripts/battle_anims.asm
+++ b/macros/scripts/battle_anims.asm
@@ -295,7 +295,7 @@
 	dw \1 ; address
 ENDM
 
-anim_ret_command EQU -1 ; $ff
+	enum anim_ret_command ; $ff
 anim_ret: MACRO
 	db anim_ret_command
 ENDM