shithub: pokecrystal

Download patch

ref: f1c23f21532b2f194536ceaaba2d9a30c62ce719
parent: 98e6878429a2c74b5293426204e0013c322d50a3
author: mid-kid <[email protected]>
date: Tue Feb 13 03:36:25 EST 2018

Fix use of one constant

--- a/engine/move_mon.asm
+++ b/engine/move_mon.asm
@@ -254,9 +254,9 @@
 	inc de
 
 	; Initialize HP.
-	ld bc, 10
+	ld bc, MON_STAT_EXP - 1
 	add hl, bc
-	ld a, $1
+	ld a, 1
 	ld c, a
 	ld b, FALSE
 	call CalcPkmnStatC
@@ -339,7 +339,7 @@
 	pop hl
 	ld bc, MON_STAT_EXP - 1
 	add hl, bc
-	ld b, $0 ; if b = 1, then stat calculation takes stat exp into account.
+	ld b, FALSE
 	call CalcPkmnStats
 
 .registerunowndex