shithub: pokecrystal

Download patch

ref: ae50b1148ae48aa083e6d26dd27a662fffb950ed
parent: d5fff8aa96f556264da03f0a7f70e090e13c713c
author: Rangi <[email protected]>
date: Sat May 19 09:11:50 EDT 2018

1 << FRZ == $20

--- a/engine/battle/ai/scoring.asm
+++ b/engine/battle/ai/scoring.asm
@@ -1569,7 +1569,7 @@
 ; No move has EFFECT_DEFROST_OPPONENT, so this layer is unused.
 
 	ld a, [wEnemyMonStatus]
-	and $20
+	and 1 << FRZ
 	ret z
 	dec [hl]
 	dec [hl]