mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-21 19:54:14 +01:00
Update src/battle_script_commands.c
Co-authored-by: LOuroboros <lunosouroboros@gmail.com>
This commit is contained in:
parent
6215d4b1b4
commit
459631eb96
@ -8185,11 +8185,11 @@ static bool32 IsAbilityAbsorbAffected(void)
|
|||||||
|
|
||||||
static bool32 IsTeatimeAffected(u32 battlerId)
|
static bool32 IsTeatimeAffected(u32 battlerId)
|
||||||
{
|
{
|
||||||
if (ItemId_GetPocket(gBattleMons[battlerId].item) != POCKET_BERRIES)
|
if (ItemId_GetPocket(gBattleMons[battlerId].item) != POCKET_BERRIES)
|
||||||
return FALSE; // Only berries
|
return FALSE; // Only berries
|
||||||
if (gStatuses3[battlerId] & STATUS3_SEMI_INVULNERABLE)
|
if (gStatuses3[battlerId] & STATUS3_SEMI_INVULNERABLE)
|
||||||
return FALSE; // Teatime doesn't affected semi-invulnerable battlers
|
return FALSE; // Teatime doesn't affected semi-invulnerable battlers
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define COURTCHANGE_SWAP(status, structField, temp) \
|
#define COURTCHANGE_SWAP(status, structField, temp) \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user