diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2018-02-02 12:29:42 -0500 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2018-02-02 12:29:42 -0500 |
commit | b7e44124d31c66cb7de4f8f609a48dd1dba78c96 (patch) | |
tree | 903c634c37267f8f3fd3852b19ee1243151af243 | |
parent | 7a532435bf5782d89d09f2f4e0985cf3e90d890f (diff) |
Fix confusing label
-rw-r--r-- | engine/item_effects.asm | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/engine/item_effects.asm b/engine/item_effects.asm index c2bdd1f61..75ccae6e1 100644 --- a/engine/item_effects.asm +++ b/engine/item_effects.asm @@ -355,33 +355,25 @@ ParkBall: ; e8a2 ld a, $ff .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 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 b, a farcall GetItemHeldEffect ld a, b cp HELD_CATCH_CHANCE - pop de ld a, d - - jr nz, .skip_hp_calc + jr nz, .max_2 add c - jr nc, .skip_hp_calc + jr nc, .max_2 ld a, $ff -.skip_hp_calc +.max_2 +.skip_hp_calc ld b, a ld [Buffer1], a call Random |