shithub: pokecrystal

Download patch

ref: bc0595564e352999efaac68ac68cea760644dde8
parent: f98a95b8ee2bb14f8fdb675e37c9876b8163b509
author: mid-kid <esteve.varela@gmail.com>
date: Mon Aug 6 18:17:01 EDT 2018

Fix constants in BattleCommand_MirrorCoat

--- a/engine/battle/move_effects/mirror_coat.asm
+++ b/engine/battle/move_effects/mirror_coat.asm
@@ -29,11 +29,11 @@
 	ld de, wStringBuffer1
 	call GetMoveData
 
-	ld a, [wStringBuffer1 + 2]
+	ld a, [wStringBuffer1 + MOVE_POWER]
 	and a
 	ret z
 
-	ld a, [wStringBuffer1 + 3]
+	ld a, [wStringBuffer1 + MOVE_TYPE]
 	cp SPECIAL
 	ret c