diff options
author | i0brendan0 <i0brendan0@github.com> | 2018-02-20 01:48:22 -0600 |
---|---|---|
committer | i0brendan0 <i0brendan0@github.com> | 2018-02-20 01:48:22 -0600 |
commit | a99adb0e5affbb8ef5aa8ded07043801665efd9e (patch) | |
tree | 77605a153468a0725150fce1fcf309ccbfdd0470 | |
parent | 0e455634975b12504e643d2620889935a03df83b (diff) |
Fix
I did a dumb and used the wrong check instruction. Should actually work.
-rw-r--r-- | docs/bugs_and_glitches.md | 2 | ||||
-rw-r--r-- | 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 |