Fixed AI check for Mean Look in case it's set to be GEN_5 or lower.
This commit is contained in:
parent
f4ff76c8ae
commit
0f95adf77a
1 changed files with 1 additions and 1 deletions
|
@ -3335,7 +3335,7 @@ static s16 AI_CheckViability(u8 battlerAtk, u8 battlerDef, u16 move, s16 score)
|
|||
case EFFECT_TRAP:
|
||||
case EFFECT_MEAN_LOOK:
|
||||
if (HasMoveEffect(battlerDef, EFFECT_RAPID_SPIN)
|
||||
|| IS_BATTLER_OF_TYPE(battlerDef, TYPE_GHOST)
|
||||
|| (B_GHOSTS_ESCAPE >= GEN_6 && IS_BATTLER_OF_TYPE(battlerDef, TYPE_GHOST))
|
||||
|| gBattleMons[battlerDef].status2 & STATUS2_WRAPPED)
|
||||
{
|
||||
break; // in this case its a bad attacking move
|
||||
|
|
Loading…
Reference in a new issue