Update src/battle_util.c

Co-authored-by: ultima-soul <33333039+ultima-soul@users.noreply.github.com>
This commit is contained in:
ghoulslash 2021-03-03 09:13:56 -07:00 committed by GitHub
parent 3a30fe900a
commit 63b1a02c28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5107,7 +5107,6 @@ enum
bool32 HasEnoughHpToEatBerry(u32 battlerId, u32 hpFraction, u32 itemId)
{
bool32 isBerry = (ItemId_GetPocket(itemId) == POCKET_BERRIES);
if (gBattleMons[battlerId].hp == 0)
return FALSE;
// Unnerve prevents consumption of opponents' berries.