shithub: pokecrystal

Download patch

ref: ff3a43d4b05049330f964bc93de7084728a40cbe
parent: 612fd7cb96746cf122b0d500991ea17122f0d90c
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Tue Feb 20 05:54:48 EST 2018

Use maskbits NUM_TYPES

--- a/engine/battle/move_effects/conversion2.asm
+++ b/engine/battle/move_effects/conversion2.asm
@@ -27,7 +27,7 @@
 
 .loop
 	call BattleRandom
-	and $1f
+	maskbits NUM_TYPES
 	cp UNUSED_TYPES
 	jr c, .okay
 	cp UNUSED_TYPES_END