summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authori0brendan0 <19826742+i0brendan0@users.noreply.github.com>2018-03-01 04:06:46 -0600
committerGitHub <noreply@github.com>2018-03-01 04:06:46 -0600
commit51bbfee89192cd93c49e3c400ca8745cc3e77e30 (patch)
treec3de14633cb3b9d336d32345dfc092e8cc5a792c
parent82ffb584c8fefc04e1bad4895cdc2d9222100b4c (diff)
Reflect Rangi's suggestion
-rw-r--r--docs/bugs_and_glitches.md18
1 files changed, 12 insertions, 6 deletions
diff --git a/docs/bugs_and_glitches.md b/docs/bugs_and_glitches.md
index 34b04de9b..ce2715d92 100644
--- a/docs/bugs_and_glitches.md
+++ b/docs/bugs_and_glitches.md
@@ -293,19 +293,25 @@ This is a bug with `CheckHiddenOpponent` in [engine/battle/effect_commands.asm](
```asm
CheckHiddenOpponent: ; 37daa
; BUG: This routine should account for Lock-On and Mind Reader.
-; Uncomment the lines below to fix.
- ; ld a, BATTLE_VARS_SUBSTATUS5_OPP
- ; call GetBattleVar
- ; and 1 << SUBSTATUS_LOCK_ON
- ; ret z
ld a, BATTLE_VARS_SUBSTATUS3_OPP
call GetBattleVar
and 1 << SUBSTATUS_FLYING | 1 << SUBSTATUS_UNDERGROUND
ret
```
-**Fix:** Uncomment those 4 lines to fix.
+Fix:
+```asm
+CheckHiddenOpponent: ; 37daa
+ ld a, BATTLE_VARS_SUBSTATUS5_OPP
+ call GetBattleVar
+ and 1 << SUBSTATUS_LOCK_ON
+ ret z
+ ld a, BATTLE_VARS_SUBSTATUS3_OPP
+ call GetBattleVar
+ and 1 << SUBSTATUS_FLYING | 1 << SUBSTATUS_UNDERGROUND
+ ret
+```
## Beat Up can desynchronize link battles