mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-20 11:13:35 +01:00
last ball defaults to first bag pocket item
This commit is contained in:
parent
ee3a2c97ee
commit
3d24fd5f30
@ -3206,10 +3206,8 @@ bool32 CanThrowLastUsedBall(void)
|
||||
void TryAddLastUsedBallItemSprites(void)
|
||||
{
|
||||
#if B_LAST_USED_BALL == TRUE
|
||||
if (gLastThrownBall == 0)
|
||||
gLastThrownBall = ITEM_POKE_BALL;
|
||||
|
||||
if (gLastThrownBall != 0 && !CheckBagHasItem(gLastThrownBall, 1))
|
||||
if ((gLastThrownBall == 0
|
||||
|| (gLastThrownBall != 0 && !CheckBagHasItem(gLastThrownBall, 1)))
|
||||
{
|
||||
// we're out of the last used ball, so just set it to the first ball in the bag
|
||||
// we have to compact the bag first bc it is typically only compacted when you open it
|
||||
|
Loading…
x
Reference in New Issue
Block a user