Split Refresh's and Take Heart's effects in AI_CheckViability
This commit is contained in:
parent
9984a9e096
commit
48c04f936a
1 changed files with 3 additions and 0 deletions
|
@ -4442,6 +4442,9 @@ static s16 AI_CheckViability(u8 battlerAtk, u8 battlerDef, u16 move, s16 score)
|
||||||
score++;
|
score++;
|
||||||
break;
|
break;
|
||||||
case EFFECT_REFRESH:
|
case EFFECT_REFRESH:
|
||||||
|
if (gBattleMons[battlerAtk].status1 & STATUS1_ANY)
|
||||||
|
score += 2;
|
||||||
|
break;
|
||||||
case EFFECT_TAKE_HEART:
|
case EFFECT_TAKE_HEART:
|
||||||
if (gBattleMons[battlerAtk].status1 & STATUS1_ANY
|
if (gBattleMons[battlerAtk].status1 & STATUS1_ANY
|
||||||
|| BattlerStatCanRise(battlerAtk, AI_DATA->abilities[battlerAtk], STAT_SPATK)
|
|| BattlerStatCanRise(battlerAtk, AI_DATA->abilities[battlerAtk], STAT_SPATK)
|
||||||
|
|
Loading…
Reference in a new issue