mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Fixed the wrong CheckHiddenOpponent bugfix (#1046)
This commit is contained in:
parent
06dd208cc7
commit
1674b6ca5a
@ -614,10 +614,15 @@ This bug affects Attract, Curse, Foresight, Mean Look, Mimic, Nightmare, Spider
|
|||||||
```diff
|
```diff
|
||||||
CheckHiddenOpponent:
|
CheckHiddenOpponent:
|
||||||
-; BUG: Lock-On and Mind Reader don't always bypass Fly and Dig (see docs/bugs_and_glitches.md)
|
-; BUG: Lock-On and Mind Reader don't always bypass Fly and Dig (see docs/bugs_and_glitches.md)
|
||||||
- ld a, BATTLE_VARS_SUBSTATUS3_OPP
|
+ ld a, BATTLE_VARS_SUBSTATUS5_OPP
|
||||||
- call GetBattleVar
|
+ call GetBattleVar
|
||||||
- and 1 << SUBSTATUS_FLYING | 1 << SUBSTATUS_UNDERGROUND
|
+ cpl
|
||||||
+ xor a
|
+ and 1 << SUBSTATUS_LOCK_ON
|
||||||
|
+ ret z
|
||||||
|
+
|
||||||
|
ld a, BATTLE_VARS_SUBSTATUS3_OPP
|
||||||
|
call GetBattleVar
|
||||||
|
and 1 << SUBSTATUS_FLYING | 1 << SUBSTATUS_UNDERGROUND
|
||||||
ret
|
ret
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user