From cbec3771e2944a502eea69aeb012bea6cdc4e26b Mon Sep 17 00:00:00 2001 From: mid-kid Date: Tue, 19 Dec 2017 21:28:06 +0100 Subject: Misc fixes for the usage of constants Several improvements that will make it easier to edit some data structures for everyone. --- battle/core.asm | 2 +- battle/effect_commands.asm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'battle') diff --git a/battle/core.asm b/battle/core.asm index 438c08f08..7b22a6f27 100644 --- a/battle/core.asm +++ b/battle/core.asm @@ -3454,7 +3454,7 @@ IsThePlayerPkmnTypesEffectiveAgainstOTPkmn: ; 3d618 ld bc, BASE_DATA_SIZE call AddNTimes ld de, EnemyMonType - ld bc, 2 + ld bc, BASE_CATCH_RATE - BASE_TYPES ld a, BANK(BaseData) call FarCopyBytes ld a, [BattleMonType1] diff --git a/battle/effect_commands.asm b/battle/effect_commands.asm index 2ed9a73c4..b40055f04 100644 --- a/battle/effect_commands.asm +++ b/battle/effect_commands.asm @@ -3881,11 +3881,11 @@ BattleCommand_Counter: ; 35813 ld de, StringBuffer1 call GetMoveData - ld a, [StringBuffer1 + 2] + ld a, [StringBuffer1 + MOVE_POWER] and a ret z - ld a, [StringBuffer1 + 3] + ld a, [StringBuffer1 + MOVE_TYPE] cp SPECIAL ret nc -- cgit v1.2.3