mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Reflect Rangi's suggestion
This commit is contained in:
parent
82ffb584c8
commit
51bbfee891
@ -293,19 +293,25 @@ This is a bug with `CheckHiddenOpponent` in [engine/battle/effect_commands.asm](
|
|||||||
```asm
|
```asm
|
||||||
CheckHiddenOpponent: ; 37daa
|
CheckHiddenOpponent: ; 37daa
|
||||||
; BUG: This routine should account for Lock-On and Mind Reader.
|
; 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
|
ld a, BATTLE_VARS_SUBSTATUS3_OPP
|
||||||
call GetBattleVar
|
call GetBattleVar
|
||||||
and 1 << SUBSTATUS_FLYING | 1 << SUBSTATUS_UNDERGROUND
|
and 1 << SUBSTATUS_FLYING | 1 << SUBSTATUS_UNDERGROUND
|
||||||
ret
|
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
|
## Beat Up can desynchronize link battles
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user