You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
turns out none of the code is needed
This commit is contained in:
@@ -302,18 +302,11 @@ Fix:
|
|||||||
|
|
||||||
```asm
|
```asm
|
||||||
CheckHiddenOpponent: ; 37daa
|
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
|
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
|
## Beat Up can desynchronize link battles
|
||||||
|
|
||||||
*Fixing this bug will break compatibility with standard Pokémon Crystal for link battles.*
|
*Fixing this bug will break compatibility with standard Pokémon Crystal for link battles.*
|
||||||
|
Reference in New Issue
Block a user