Update battle_util.c

Noted Protection Bypassing
This commit is contained in:
SonikkuA-DatH 2022-12-21 14:50:06 -08:00 committed by GitHub
parent 0a5154499e
commit c4db74460a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8012,6 +8012,11 @@ bool32 IsBattlerProtected(u8 battlerId, u16 move)
else if (gProtectStructs[battlerId].protected) else if (gProtectStructs[battlerId].protected)
return FALSE; return FALSE;
} }
if (move == MOVE_TEATIME)
{
return FALSE;
}
// Protective Pads doesn't stop Unseen Fist from bypassing Protect effects, so IsMoveMakingContact() isn't used here. // Protective Pads doesn't stop Unseen Fist from bypassing Protect effects, so IsMoveMakingContact() isn't used here.
// This means extra logic is needed to handle Shell Side Arm. // This means extra logic is needed to handle Shell Side Arm.