From e9669ccbfeaef5cfd03ae37298af0f88dd8d311a Mon Sep 17 00:00:00 2001 From: AgustinGDLV <103095241+AgustinGDLV@users.noreply.github.com> Date: Mon, 16 May 2022 17:41:18 -0700 Subject: [PATCH] Update src/pokemon.c Co-authored-by: sneed <56992013+Sneed69@users.noreply.github.com> --- src/pokemon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pokemon.c b/src/pokemon.c index 095d7f414..d0f4f8a71 100644 --- a/src/pokemon.c +++ b/src/pokemon.c @@ -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;