Merge pull request #1784 from LOuroboros/gravAppleAI

Small AI improvement related to Grav Apple
This commit is contained in:
ghoulslash 2021-10-18 09:18:25 -04:00 committed by GitHub
commit 91e6c8fb0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3363,6 +3363,10 @@ static s16 AI_CheckViability(u8 battlerAtk, u8 battlerDef, u16 move, s16 score)
case EFFECT_PARALYZE:
IncreaseParalyzeScore(battlerAtk, battlerDef, move, &score);
break;
case EFFECT_GRAV_APPLE:
if (gFieldStatuses & STATUS_FIELD_GRAVITY)
score += 2;
// fall through
case EFFECT_ATTACK_DOWN_HIT:
case EFFECT_DEFENSE_DOWN_HIT:
case EFFECT_SPECIAL_ATTACK_DOWN_HIT: