namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
///
/// Soul-Heart is an ability that raises Special Attack when another Pokémon faints.
///
/// Bulbapedia - Soul-Heart
///
[Script(ScriptCategory.Ability, "soul_heart")]
public class SoulHeart : Script
{
///
public override void OnAllyFaint(IPokemon ally, IPokemon faintedPokemon)
{
ally.ChangeStatBoost(Statistic.SpecialAttack, 1, true, false);
}
///
public override void OnOpponentFaints(IExecutingMove move, IPokemon target, byte hit)
{
move.User.ChangeStatBoost(Statistic.SpecialAttack, 1, true, false);
}
}