mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-03-06 07:27:47 +01:00
Fixed Enigma Berry check in CanMegaEvolve
This commit is contained in:
parent
c00873cbc4
commit
0a65fd316c
@ -9333,8 +9333,13 @@ bool32 CanMegaEvolve(u8 battlerId)
|
||||
{
|
||||
if (B_ENABLE_DEBUG && gBattleStruct->debugHoldEffects[battlerId])
|
||||
holdEffect = gBattleStruct->debugHoldEffects[battlerId];
|
||||
#ifdef ITEM_EXPANSION
|
||||
else if (itemId == ITEM_ENIGMA_BERRY_E_READER)
|
||||
holdEffect = gEnigmaBerries[battlerId].holdEffect;
|
||||
#else
|
||||
else if (itemId == ITEM_ENIGMA_BERRY)
|
||||
holdEffect = gEnigmaBerries[battlerId].holdEffect;
|
||||
#endif
|
||||
else
|
||||
holdEffect = ItemId_GetHoldEffect(itemId);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user