Fix infinite Bide loop
Bide no longer gets stuck in a loop, but also doesn't strike twice.
This commit is contained in:
parent
55b279ba0a
commit
02b3a1da86
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue