Merge pull request #1969 from LOuroboros/patch-2

Removed ITEM_ENIGMA_BERRY_E_READER usage
This commit is contained in:
Eduardo Quezada D'Ottone 2021-12-03 15:53:46 -03:00 committed by GitHub
commit ae1d124a0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3169,11 +3169,7 @@ void SetMoveEffect(bool32 primary, u32 certain)
RecordAbilityBattle(gBattlerTarget, gLastUsedAbility); RecordAbilityBattle(gBattlerTarget, gLastUsedAbility);
} }
else if (gBattleMons[gBattlerAttacker].item != 0 else if (gBattleMons[gBattlerAttacker].item != 0
#ifdef ITEM_EXPANSION
|| gBattleMons[gBattlerTarget].item == ITEM_ENIGMA_BERRY_E_READER
#else
|| gBattleMons[gBattlerTarget].item == ITEM_ENIGMA_BERRY || gBattleMons[gBattlerTarget].item == ITEM_ENIGMA_BERRY
#endif
|| gBattleMons[gBattlerTarget].item == 0) || gBattleMons[gBattlerTarget].item == 0)
{ {
gBattlescriptCurrInstr++; gBattlescriptCurrInstr++;