Update src/pokemon.c

Co-authored-by: sneed <56992013+Sneed69@users.noreply.github.com>
This commit is contained in:
AgustinGDLV 2022-05-16 17:41:18 -07:00 committed by GitHub
parent 2d25cd56b9
commit e9669ccbfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4892,6 +4892,7 @@ bool8 PokemonUseItemEffects(struct Pokemon *mon, u16 item, u8 partyIndex, u8 mov
{
u32 species = GetMonData(mon, MON_DATA_SPECIES, NULL);
gBattleScripting.levelUpHP = 0; // Prevents reviving mons that don't level up.
temp1 = ItemId_GetHoldEffectParam(item) & 0x0F;
if (ItemId_GetHoldEffectParam(item) & ONE_HUNDRED)
temp1 *= 100;