Tossing balls lag back to Crystal levels (#73)

Co-authored-by: Thorn Avery <thorn@avery.garden>
This commit is contained in:
thornAvery 2025-09-01 12:56:04 +10:00 committed by GitHub
parent 2755b8e6c1
commit ebaeaa8ca7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

4
.gitignore vendored
View file

@ -1,3 +1,7 @@
# BGB
bgb
# compiled objects # compiled objects
*.o *.o

View file

@ -239,10 +239,12 @@ PokeBallEffect:
ld [wWildMon], a ld [wWildMon], a
ld a, [wBattleType] ld a, [wBattleType]
cp BATTLETYPE_CONTEST ; Fixes the Park Ball corrupting graphics when used outside of a Contest cp BATTLETYPE_CONTEST ; Fixes the Park Ball corrupting graphics when used outside of a Contest
call nz, ReturnToBattle_UseBall jp z, .skip_return_to_battle
cp BATTLETYPE_SAFARI cp BATTLETYPE_SAFARI
call nz, ReturnToBattle_UseBall jp z, .skip_return_to_battle
call ReturnToBattle_UseBall
.skip_return_to_battle
ld hl, wOptions ld hl, wOptions
res NO_TEXT_SCROLL, [hl] res NO_TEXT_SCROLL, [hl]
ld hl, ItemUsedText ld hl, ItemUsedText