Skip to content

Commit

Permalink
fixed item duplication on Nuzlocke faint
Browse files Browse the repository at this point in the history
  • Loading branch information
TheXaman committed May 17, 2022
1 parent fb07b76 commit 45415fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tx_randomizer_and_challenges.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,10 @@ void NuzlockeDeleteFaintedPartyPokemon(void) // @Kurausukun
monItem = GetMonData(pokemon, MON_DATA_HELD_ITEM, NULL);

if (monItem != ITEM_NONE)
{
AddBagItem(monItem, 1);
SetMonData(pokemon, MON_DATA_HELD_ITEM, ITEM_NONE);
}
NuzlockeDeletePartyMon(i);
}
}
Expand Down

0 comments on commit 45415fa

Please sign in to comment.