shithub: pokecrystal

Download patch

ref: 04d0490c4c55366220310b9b8e1c4a181e07d842
parent: fdf10c9fac69b376f528a0ee6929abd52a210a52
author: mid-kid <esteve.varela@gmail.com>
date: Sun Jul 15 07:56:57 EDT 2018

Fix anim_ret_command

--- a/engine/battle_anims/anim_commands.asm
+++ b/engine/battle_anims/anim_commands.asm
@@ -284,7 +284,7 @@
 .loop
 	call GetBattleAnimByte
 
-	cp $ff
+	cp anim_ret_command
 	jr nz, .not_done_with_anim
 
 ; Return from a subroutine.
--- a/macros/scripts/battle_anims.asm
+++ b/macros/scripts/battle_anims.asm
@@ -295,7 +295,7 @@
 	dw \1 ; address
 ENDM
 
-	enum anim_ret_command ; $ff
+anim_ret_command EQU -1 ; $ff
 anim_ret: MACRO
 	db anim_ret_command
 ENDM