Skip to content

Commit

Permalink
Bugfix: Screens have a double fade out when exiting battle in the saf…
Browse files Browse the repository at this point in the history
…ari zone
  • Loading branch information
SoupPotato authored and vulcandth committed Jun 29, 2024
1 parent a1c8d48 commit caad43d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions engine/items/item_effects.asm
Original file line number Diff line number Diff line change
Expand Up @@ -702,8 +702,16 @@ PokeBallEffect:
ld hl, BallSentToPCText
call PrintText

ld a, [wBattleType]
cp BATTLETYPE_SAFARI
jr z, .skip_fade
cp BATTLETYPE_SAFARI_FISH
jr z, .skip_fade
cp BATTLETYPE_SAFARI_TREE
jr z, .skip_fade
call RotateThreePalettesRight
call LoadStandardFont
.skip_fade
jr .return_from_capture

.catch_bug_contest_mon
Expand Down

0 comments on commit caad43d

Please sign in to comment.