From fb468b67762fd08f9021152bf7fa70216ab4d771 Mon Sep 17 00:00:00 2001 From: ghoulslash Date: Fri, 19 Nov 2021 16:32:00 -0500 Subject: [PATCH] fix unseen fist check --- src/battle_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battle_util.c b/src/battle_util.c index c37d64adcb..cc619decf8 100644 --- a/src/battle_util.c +++ b/src/battle_util.c @@ -7520,7 +7520,7 @@ bool32 IsBattlerProtected(u8 battlerId, u16 move) // 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. - if (GetBattlerAbility(gBattlerAttacker == ABILITY_UNSEEN_FIST) + if (GetBattlerAbility(gBattlerAttacker) == ABILITY_UNSEEN_FIST && (gBattleMoves[move].flags & FLAG_MAKES_CONTACT || (gBattleMoves[move].effect == EFFECT_SHELL_SIDE_ARM && gSwapDamageCategory))) return FALSE; else if (!(gBattleMoves[move].flags & FLAG_PROTECT_AFFECTED))