Fix infinite Bide loop

Bide no longer gets stuck in a loop, but also doesn't strike twice.
This commit is contained in:
BuffelSaft 2021-11-13 17:13:03 +13:00
parent 55b279ba0a
commit 02b3a1da86

View File

@ -13598,7 +13598,9 @@ static bool32 CriticalCapture(u32 odds)
bool8 IsMoveAffectedByParentalBond(u16 move, u8 battlerId)
{
if (gBattleMoves[move].split != SPLIT_STATUS && !(sForbiddenMoves[move] & FORBIDDEN_PARENTAL_BOND))
if (gBattleMoves[move].split != SPLIT_STATUS
&& !(sForbiddenMoves[move] & FORBIDDEN_PARENTAL_BOND)
&& gBattleMons[gBattlerAttacker].status2 & STATUS2_BIDE)
{
if (gBattleTypeFlags & BATTLE_TYPE_DOUBLE)
{