From a99adb0e5affbb8ef5aa8ded07043801665efd9e Mon Sep 17 00:00:00 2001 From: i0brendan0 Date: Tue, 20 Feb 2018 01:48:22 -0600 Subject: [PATCH] Fix I did a dumb and used the wrong check instruction. Should actually work. --- docs/bugs_and_glitches.md | 2 +- engine/battle/effect_commands.asm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/bugs_and_glitches.md b/docs/bugs_and_glitches.md index 7a4242ece..a1693a00d 100644 --- a/docs/bugs_and_glitches.md +++ b/docs/bugs_and_glitches.md @@ -295,7 +295,7 @@ CheckHiddenOpponent: ; 37daa ; Uncomment the lines below to fix. ; ld a, BATTLE_VARS_SUBSTATUS5_OPP ; call GetBattleVar - ; bit SUBSTATUS_LOCK_ON, a + ; and 1 << SUBSTATUS_LOCK_ON ; ret z ld a, BATTLE_VARS_SUBSTATUS3_OPP call GetBattleVar diff --git a/engine/battle/effect_commands.asm b/engine/battle/effect_commands.asm index 2cf4ac97d..12915038c 100644 --- a/engine/battle/effect_commands.asm +++ b/engine/battle/effect_commands.asm @@ -9711,7 +9711,7 @@ CheckHiddenOpponent: ; 37daa ; Uncomment the lines below to fix. ; ld a, BATTLE_VARS_SUBSTATUS5_OPP ; call GetBattleVar - ; bit SUBSTATUS_LOCK_ON, a + ; and 1 << SUBSTATUS_LOCK_ON ; ret z ld a, BATTLE_VARS_SUBSTATUS3_OPP call GetBattleVar