Update item_effects.asm

This commit is contained in:
robjlyons
2026-02-11 06:15:05 +00:00
committed by GitHub
parent 34110bb99d
commit 3e28a3d021

View File

@@ -531,9 +531,11 @@ ItemUseBall:
ld [hl], a
ld a, [wEnemyMonSpecies]
ld [wCapturedMonSpecies], a
push af
call MarkWildEncounterCatchUsedItem
pop af
ld [wCurPartySpecies], a
ld [wPokedexNum], a
call MarkWildEncounterCatchUsedItem
ld a, [wBattleType]
cp BATTLE_TYPE_OLD_MAN ; is this the old man battle?
jp z, .oldManCaughtMon ; if so, don't give the player the caught Pokémon