heal pulse effect in double battles
This commit is contained in:
parent
04ce8ec213
commit
41d64ea41e
@ -3009,6 +3009,13 @@ static s16 AI_DoubleBattle(u8 battlerAtk, u8 battlerDef, u16 move, s16 score)
|
|||||||
RETURN_SCORE_PLUS(1);
|
RETURN_SCORE_PLUS(1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case EFFECT_HEAL_PULSE:
|
||||||
|
case EFFECT_HIT_ENEMY_HEAL_ALLY:
|
||||||
|
if (AI_WhoStrikesFirst(battlerAtk, FOE(battlerAtk), move) == AI_IS_FASTER
|
||||||
|
&& AI_WhoStrikesFirst(battlerAtk, BATTLE_PARTNER(FOE(battlerAtk)), move) == AI_IS_FASTER
|
||||||
|
&& gBattleMons[battlerAtkPartner].hp < gBattleMons[battlerAtkPartner].maxHP / 2)
|
||||||
|
RETURN_SCORE_PLUS(1);
|
||||||
|
break;
|
||||||
} // attacker move effects
|
} // attacker move effects
|
||||||
} // check partner protecting
|
} // check partner protecting
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user