From 80d437d56562e3ec75f2b2fbc05443f4d2cbc0b4 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Fri, 9 Mar 2018 22:09:03 +0100 Subject: [PATCH] Fix some uses of EFFECTIVE --- engine/battle/core.asm | 2 +- engine/battle/move_effects/conversion2.asm | 2 +- engine/battle_anims/anim_commands.asm | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/battle/core.asm b/engine/battle/core.asm index fe20333b5..c94b2b8dd 100644 --- a/engine/battle/core.asm +++ b/engine/battle/core.asm @@ -1533,7 +1533,7 @@ HandleFutureSight: ; 3ca26 xor a ld [wAttackMissed], a ld [wAlreadyDisobeyed], a - ld a, 10 + ld a, EFFECTIVE ld [wTypeModifier], a callfar DoMove xor a diff --git a/engine/battle/move_effects/conversion2.asm b/engine/battle/move_effects/conversion2.asm index 074ca93ba..c0e390926 100644 --- a/engine/battle/move_effects/conversion2.asm +++ b/engine/battle/move_effects/conversion2.asm @@ -50,7 +50,7 @@ BattleCommand_Conversion2: ; 359e6 ld [hl], a pop hl ld a, [wTypeMatchup] - cp 10 + cp EFFECTIVE jr nc, .loop call BattleCommand_SwitchTurn diff --git a/engine/battle_anims/anim_commands.asm b/engine/battle_anims/anim_commands.asm index 43e28c5db..1f4da606d 100644 --- a/engine/battle_anims/anim_commands.asm +++ b/engine/battle_anims/anim_commands.asm @@ -1338,7 +1338,7 @@ PlayHitSound: ; cc881 and $7f ret z - cp 10 + cp EFFECTIVE ld de, SFX_DAMAGE jr z, .play