ref: 213f6dfc98f6865131a6c8ba1a37ca002e752868
parent: af6fa345d689844429d20df9a18f6ae298733140
author: Marcus Huderle <huderlem@gmail.com>
date: Sat Feb 20 08:54:52 EST 2016
Remove hardcoded values for CopyData in battle core.
--- a/engine/battle/core.asm
+++ b/engine/battle/core.asm
@@ -1727,7 +1727,7 @@
ld bc, NUM_MOVES
call CopyData
ld de, wBattleMonLevel
- ld bc, $b
+ ld bc, wBattleMonPP - wBattleMonLevel
call CopyData
ld a, [wBattleMonSpecies2]
ld [wd0b5], a
@@ -1771,7 +1771,7 @@
ld bc, NUM_MOVES
call CopyData
ld de, wEnemyMonLevel
- ld bc, $b
+ ld bc, wEnemyMonPP - wEnemyMonLevel
call CopyData
ld a, [wEnemyMonSpecies]
ld [wd0b5], a
@@ -1913,11 +1913,11 @@
call PlaceString
ld hl, wBattleMonSpecies
ld de, wLoadedMon
- ld bc, $c
+ ld bc, wBattleMonDVs - wBattleMonSpecies
call CopyData
ld hl, wBattleMonLevel
ld de, wLoadedMonLevel
- ld bc, $b
+ ld bc, wBattleMonPP - wBattleMonLevel
call CopyData
coord hl, 14, 8
push hl