From bd4b660983c58d70050957700b2d7d56e42e7a13 Mon Sep 17 00:00:00 2001 From: eatthepear <65027979+eatthepear@users.noreply.github.com> Date: Fri, 11 Nov 2022 21:28:44 -0500 Subject: [PATCH] Fix Berries that were broken after Bug Bite fix Issue #2448 Haven't tested extensively, but regular Berries work and Bug Bite w/ Berries also works. I believe this line was missing by accident (you can look at the merged Bug Bite PR #2433 to see that this line was deleted and never replaced). --- src/battle_util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/battle_util.c b/src/battle_util.c index 9c3e189d7..faf4cdb89 100644 --- a/src/battle_util.c +++ b/src/battle_util.c @@ -7407,6 +7407,7 @@ u8 ItemBattleEffects(u8 caseID, u8 battlerId, bool8 moveTurn) case ITEMEFFECT_MOVE_END: for (battlerId = 0; battlerId < gBattlersCount; battlerId++) { + gLastUsedItem = gBattleMons[battlerId].item; effect = ItemEffectMoveEnd(battlerId, GetBattlerHoldEffect(battlerId, TRUE)); if (effect) {