From 459631eb9682e29ee391a6a81fcbf593051e0ee8 Mon Sep 17 00:00:00 2001 From: SonikkuA-DatH <58025603+SonikkuA-DatH@users.noreply.github.com> Date: Mon, 19 Dec 2022 17:18:23 -0800 Subject: [PATCH] Update src/battle_script_commands.c Co-authored-by: LOuroboros --- src/battle_script_commands.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c index 9dc869d27..ede9574af 100644 --- a/src/battle_script_commands.c +++ b/src/battle_script_commands.c @@ -8185,11 +8185,11 @@ static bool32 IsAbilityAbsorbAffected(void) static bool32 IsTeatimeAffected(u32 battlerId) { - if (ItemId_GetPocket(gBattleMons[battlerId].item) != POCKET_BERRIES) - return FALSE; // Only berries - if (gStatuses3[battlerId] & STATUS3_SEMI_INVULNERABLE) - return FALSE; // Teatime doesn't affected semi-invulnerable battlers - return TRUE; + if (ItemId_GetPocket(gBattleMons[battlerId].item) != POCKET_BERRIES) + return FALSE; // Only berries + if (gStatuses3[battlerId] & STATUS3_SEMI_INVULNERABLE) + return FALSE; // Teatime doesn't affected semi-invulnerable battlers + return TRUE; } #define COURTCHANGE_SWAP(status, structField, temp) \