fix unseen fist check
This commit is contained in:
parent
1696e60b9f
commit
fb468b6776
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
// 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.
|
||||||
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)))
|
&& (gBattleMoves[move].flags & FLAG_MAKES_CONTACT || (gBattleMoves[move].effect == EFFECT_SHELL_SIDE_ARM && gSwapDamageCategory)))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
else if (!(gBattleMoves[move].flags & FLAG_PROTECT_AFFECTED))
|
else if (!(gBattleMoves[move].flags & FLAG_PROTECT_AFFECTED))
|
||||||
|
|
Loading…
Reference in a new issue