shithub: pokecrystal

Download patch

ref: b06cfe78fd8494fbccd4186b970382c49c416b5c
parent: 1d97d41ea2be9cd99c7e5688f128b1b6568262c5
author: Idain <luiscarlosholguinperez@outlook.com>
date: Wed Mar 30 16:44:58 EDT 2022

Use NUM_BATTLE_STATS instead of raw numbers

--- a/engine/battle/effect_commands.asm
+++ b/engine/battle/effect_commands.asm
@@ -4878,7 +4878,7 @@
 	ld de, wPlayerStats
 	ld bc, wBattleMonAttack
 
-	ld a, 5
+	ld a, NUM_BATTLE_STATS
 	call CalcBattleStats
 
 	ld hl, BadgeStatBoosts
@@ -4899,7 +4899,7 @@
 	ld de, wEnemyStats
 	ld bc, wEnemyMonAttack
 
-	ld a, 5
+	ld a, NUM_BATTLE_STATS
 	call CalcBattleStats
 
 	call BattleCommand_SwitchTurn