Add Revival Blessing AI (#5704)
This commit is contained in:
parent
f44b8f9a0e
commit
42b94e378b
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user