Add Revival Blessing AI (#5704)

This commit is contained in:
Pawkkie 2024-12-01 15:58:13 -05:00 committed by GitHub
parent f44b8f9a0e
commit 42b94e378b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4399,7 +4399,13 @@ static u32 AI_CalcMoveEffectScore(u32 battlerAtk, u32 battlerDef, u32 move)
break;
case EFFECT_REVIVAL_BLESSING:
if (GetFirstFaintedPartyIndex(battlerAtk) != PARTY_SIZE)
{
ADJUST_SCORE(DECENT_EFFECT);
if (AI_DATA->shouldSwitch & (1u << battlerAtk)) // Bad matchup
ADJUST_SCORE(WEAK_EFFECT);
if (AI_DATA->mostSuitableMonId[battlerAtk] != PARTY_SIZE) // Good mon to send in after
ADJUST_SCORE(WEAK_EFFECT);
}
break;
//case EFFECT_EXTREME_EVOBOOST: // TODO
//break;