summaryrefslogtreecommitdiff
path: root/engine/move_mon.asm
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@gmail.com>2016-01-19 23:28:37 -0500
committerPikalaxALT <PikalaxALT@gmail.com>2016-01-19 23:28:37 -0500
commitbe8d1c80f476c2a48eafb0408afd412c8ab95195 (patch)
tree6019b5f911b34e34101d4a521e4159a6e9012791 /engine/move_mon.asm
parent8a45169a9dd0c9e462d02bb772b4cd029ca04801 (diff)
parent289d3dea86b82c4ce7eb7268ef33980688306587 (diff)
Merge branch 'master' of https://github.com/pret/pokecrystal
Diffstat (limited to 'engine/move_mon.asm')
-rwxr-xr-xengine/move_mon.asm7
1 files changed, 3 insertions, 4 deletions
diff --git a/engine/move_mon.asm b/engine/move_mon.asm
index 8bda52daa..0a8c340ed 100755
--- a/engine/move_mon.asm
+++ b/engine/move_mon.asm
@@ -287,17 +287,16 @@ endr
dec a
jr nz, .generatestats
ld hl, EnemyMonMaxHP
- ld bc, 2*6 ; MaxHP + 5 Stats
+ ld bc, 2 * 6 ; MaxHP + 5 Stats
call CopyBytes
pop hl
jr .next3
.generatestats
pop hl
- ld bc, 2*5 ; 5 Stats
+ ld bc, MON_STAT_EXP - 1
add hl, bc
- ld b, $0 ; if b = 1, then the Stats of the Pkmn are calculated
- ; only the current HP aren't set to MaxHP after this
+ ld b, $0 ; if b = 1, then stat calculation takes stat exp into account.
call CalcPkmnStats
.next3