Fixed regression from master/upcoming merge (#6199)
This commit is contained in:
parent
4fd0c3a5be
commit
473cf265a4
@ -8783,8 +8783,8 @@ bool32 IsBattlerProtected(u32 battlerAtk, u32 battlerDef, u32 move)
|
||||
else if (gProtectStructs[battlerDef].maxGuarded && IsMoveBlockedByMaxGuard(move))
|
||||
isProtected = TRUE;
|
||||
else if (!gProtectStructs[battlerDef].maxGuarded // Max Guard cannot be bypassed by Unseen Fist
|
||||
&& IsMoveMakingContact(move, gBattlerAttacker)
|
||||
&& GetBattlerAbility(gBattlerAttacker) == ABILITY_UNSEEN_FIST)
|
||||
&& IsMoveMakingContact(move, battlerAtk)
|
||||
&& GetBattlerAbility(battlerAtk) == ABILITY_UNSEEN_FIST)
|
||||
isProtected = FALSE;
|
||||
else if (gSideStatuses[GetBattlerSide(battlerDef)] & SIDE_STATUS_CRAFTY_SHIELD && IsBattleMoveStatus(move) && GetMoveEffect(move) != EFFECT_COACHING)
|
||||
isProtected = TRUE;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user