mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 19:47:35 +01:00
Split Refresh's and Take Heart's effects in AI_CheckViability
This commit is contained in:
parent
9984a9e096
commit
48c04f936a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user