More ai tweaks
This commit is contained in:
parent
91b364e8d6
commit
f19a51eea6
1 changed files with 9 additions and 1 deletions
|
@ -1347,7 +1347,15 @@ static bool32 CompareTwoMoves(u32 bestMove, u32 goodMove)
|
||||||
// Check recoil
|
// Check recoil
|
||||||
if (GetBattlerAbility(sBattler_AI) != ABILITY_ROCK_HEAD)
|
if (GetBattlerAbility(sBattler_AI) != ABILITY_ROCK_HEAD)
|
||||||
{
|
{
|
||||||
if (gBattleMoves[goodMove].effect == EFFECT_RECOIL && gBattleMoves[bestMove].effect != EFFECT_RECOIL)
|
if (((gBattleMoves[goodMove].effect == EFFECT_RECOIL
|
||||||
|
|| gBattleMoves[goodMove].effect == EFFECT_RECOIL_IF_MISS
|
||||||
|
|| gBattleMoves[goodMove].effect == EFFECT_RECOIL_50
|
||||||
|
|| gBattleMoves[goodMove].effect == EFFECT_RECOIL_33_STATUS)
|
||||||
|
&& (gBattleMoves[bestMove].effect != EFFECT_RECOIL
|
||||||
|
&& gBattleMoves[bestMove].effect != EFFECT_RECOIL_IF_MISS
|
||||||
|
&& gBattleMoves[bestMove].effect != EFFECT_RECOIL_50
|
||||||
|
&& gBattleMoves[bestMove].effect != EFFECT_RECOIL_33_STATUS
|
||||||
|
&& gBattleMoves[bestMove].effect != EFFECT_RECHARGE)))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
// Check recharge
|
// Check recharge
|
||||||
|
|
Loading…
Reference in a new issue