mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-21 11:43:37 +01:00
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
@ -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…
x
Reference in New Issue
Block a user