Split Refresh's and Take Heart's effects in AI_CheckViability

This commit is contained in:
LOuroboros 2023-06-19 00:07:47 -03:00
parent 9984a9e096
commit 48c04f936a

View File

@ -4442,6 +4442,9 @@ static s16 AI_CheckViability(u8 battlerAtk, u8 battlerDef, u16 move, s16 score)
score++;
break;
case EFFECT_REFRESH:
if (gBattleMons[battlerAtk].status1 & STATUS1_ANY)
score += 2;
break;
case EFFECT_TAKE_HEART:
if (gBattleMons[battlerAtk].status1 & STATUS1_ANY
|| BattlerStatCanRise(battlerAtk, AI_DATA->abilities[battlerAtk], STAT_SPATK)