From a914c11b301b03d87d57e04e096ebe786cf30d55 Mon Sep 17 00:00:00 2001 From: FosterProgramming Date: Tue, 18 Nov 2025 23:12:11 +0100 Subject: [PATCH] Fix max mushroom unable to be selected when one stat is maxed (#8287) --- src/item_use.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/item_use.c b/src/item_use.c index ce1cb074f4..18fdbea192 100644 --- a/src/item_use.c +++ b/src/item_use.c @@ -1293,11 +1293,12 @@ bool32 CannotUseItemsInBattle(u16 itemId, struct Pokemon *mon) case EFFECT_ITEM_INCREASE_ALL_STATS: { u32 ability = GetBattlerAbility(gBattlerInMenuId); + cannotUse = TRUE; for (i = STAT_ATK; i < NUM_STATS; i++) { - if (CompareStat(gBattlerInMenuId, i, MAX_STAT_STAGE, CMP_EQUAL, ability)) + if (!CompareStat(gBattlerInMenuId, i, MAX_STAT_STAGE, CMP_EQUAL, ability)) { - cannotUse = TRUE; + cannotUse = FALSE; break; } }