mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-01-23 09:16:20 -08:00
Fix confusing label
This commit is contained in:
parent
7a532435bf
commit
b7e44124d3
@ -355,33 +355,25 @@ ParkBall: ; e8a2
|
|||||||
ld a, $ff
|
ld a, $ff
|
||||||
.max_1
|
.max_1
|
||||||
|
|
||||||
|
; BUG: farcall overwrites a, and GetItemHeldEffect takes b anyway.
|
||||||
|
; This is probably the reason the HELD_CATCH_CHANCE effect is never used.
|
||||||
|
; Uncomment the line below to fix.
|
||||||
ld d, a
|
ld d, a
|
||||||
push de
|
push de
|
||||||
|
|
||||||
; BUG: farcall overwrites a,
|
|
||||||
; and GetItemHeldEffect takes b anyway.
|
|
||||||
|
|
||||||
; This is probably the reason
|
|
||||||
; the HELD_CATCH_CHANCE effect
|
|
||||||
; is never used.
|
|
||||||
|
|
||||||
; Uncomment the line below to fix.
|
|
||||||
|
|
||||||
ld a, [BattleMonItem]
|
ld a, [BattleMonItem]
|
||||||
; ld b, a
|
; ld b, a
|
||||||
farcall GetItemHeldEffect
|
farcall GetItemHeldEffect
|
||||||
ld a, b
|
ld a, b
|
||||||
cp HELD_CATCH_CHANCE
|
cp HELD_CATCH_CHANCE
|
||||||
|
|
||||||
pop de
|
pop de
|
||||||
ld a, d
|
ld a, d
|
||||||
|
jr nz, .max_2
|
||||||
jr nz, .skip_hp_calc
|
|
||||||
add c
|
add c
|
||||||
jr nc, .skip_hp_calc
|
jr nc, .max_2
|
||||||
ld a, $ff
|
ld a, $ff
|
||||||
.skip_hp_calc
|
.max_2
|
||||||
|
|
||||||
|
.skip_hp_calc
|
||||||
ld b, a
|
ld b, a
|
||||||
ld [Buffer1], a
|
ld [Buffer1], a
|
||||||
call Random
|
call Random
|
||||||
|
Loading…
x
Reference in New Issue
Block a user