ref: 60ffde3752d079d557dab9a8acecb0bc9e5d46aa
parent: dc1d0217a19302b462dd62c0d1ccb423245586bf
parent: 8755a88458b912975c537e489e182ca956dcac9b
author: Rangi <35663410+Rangi42@users.noreply.github.com>
date: Thu Jul 26 12:20:52 EDT 2018
Merge pull request #489 from i0brendan0/i0brendan0-patch-5 Add Fix for Lock-On Bug
--- a/docs/bugs_and_glitches.md
+++ b/docs/bugs_and_glitches.md
@@ -329,8 +329,14 @@
ret
```
-*To do:* Fix this bug.
+Fix:
+```asm
+CheckHiddenOpponent: ; 37daa
+ ret
+```
+
+The code in `CheckHiddenOpponent` is completely redundant as `CheckHit` already does what this code is doing. Another option is to remove `CheckHiddenOpponent` completely, the calls to `CheckHiddenOpponent`, and the jump afterwards.
## Beat Up can desynchronize link battles