mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-20 19:23:38 +01:00
Merge pull request #2079 from LOuroboros/patch-4
Fix Enigma Berry check in CanMegaEvolve
This commit is contained in:
commit
f371288bc2
@ -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