mirror of
https://github.com/pret/pokeemerald.git
synced 2026-05-09 04:13:03 -05:00
Update src/pokemon.c
Co-authored-by: sneed <56992013+Sneed69@users.noreply.github.com>
This commit is contained in:
parent
2d25cd56b9
commit
e9669ccbfe
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user