diff options
author | i0brendan0 <19826742+i0brendan0@users.noreply.github.com> | 2018-07-21 05:05:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-21 05:05:40 -0500 |
commit | 8755a88458b912975c537e489e182ca956dcac9b (patch) | |
tree | 8e6000a9a70de18cea90b261ba67c5b5b4127309 /docs/bugs_and_glitches.md | |
parent | 6e62eabb42cb8c933e77d84768353c5fec47cf3a (diff) |
turns out none of the code is needed
Diffstat (limited to 'docs/bugs_and_glitches.md')
-rw-r--r-- | docs/bugs_and_glitches.md | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/docs/bugs_and_glitches.md b/docs/bugs_and_glitches.md index 4aeb088ef..7dfd8f421 100644 --- a/docs/bugs_and_glitches.md +++ b/docs/bugs_and_glitches.md @@ -302,18 +302,11 @@ Fix: ```asm CheckHiddenOpponent: ; 37daa - ld a, BATTLE_VARS_SUBSTATUS5_OPP - call GetBattleVar - ld a, [hl] - and 1 << SUBSTATUS_LOCK_ON - cp 1 << SUBSTATUS_LOCK_ON - ret z - ld a, BATTLE_VARS_SUBSTATUS3_OPP - call GetBattleVar - and 1 << SUBSTATUS_FLYING | 1 << SUBSTATUS_UNDERGROUND 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 *Fixing this bug will break compatibility with standard Pokémon Crystal for link battles.* |