From d385b838c8fd6ca32f35a4327dc17f9d2a7434b3 Mon Sep 17 00:00:00 2001 From: AgustinGDLV Date: Mon, 16 May 2022 15:53:42 -0700 Subject: [PATCH] fixed exp resetting --- src/pokemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pokemon.c b/src/pokemon.c index 953278846..7cb72b37f 100644 --- a/src/pokemon.c +++ b/src/pokemon.c @@ -4895,7 +4895,7 @@ bool8 PokemonUseItemEffects(struct Pokemon *mon, u16 item, u8 partyIndex, u8 mov temp1 *= 1000; if (ItemId_GetHoldEffectParam(item) & TEN_THOUSAND) temp1 *= 10000; - dataUnsigned = temp1 + gExperienceTables[gBaseStats[GetMonData(mon, MON_DATA_SPECIES, NULL)].growthRate][GetMonData(mon, MON_DATA_LEVEL, NULL)]; + dataUnsigned = temp1 + GetMonData(mon, MON_DATA_EXP, NULL); if (dataUnsigned > gExperienceTables[gBaseStats[GetMonData(mon, MON_DATA_SPECIES, NULL)].growthRate][MAX_LEVEL]) dataUnsigned = gExperienceTables[gBaseStats[GetMonData(mon, MON_DATA_SPECIES, NULL)].growthRate][MAX_LEVEL]; }