mirror of
https://github.com/pret/pokeemerald.git
synced 2026-09-30 22:07:24 -05:00
Add Revival Blessing AI (#5704)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user