This commit is contained in:
22
Plugins/PkmnLib.Plugin.Gen7/Scripts/Abilities/SoulHeart.cs
Normal file
22
Plugins/PkmnLib.Plugin.Gen7/Scripts/Abilities/SoulHeart.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
|
||||
|
||||
/// <summary>
|
||||
/// Soul-Heart is an ability that raises Special Attack when another Pokémon faints.
|
||||
///
|
||||
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Soul-Heart_(Ability)">Bulbapedia - Soul-Heart</see>
|
||||
/// </summary>
|
||||
[Script(ScriptCategory.Ability, "soul_heart")]
|
||||
public class SoulHeart : Script
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnAllyFaint(IPokemon ally, IPokemon faintedPokemon)
|
||||
{
|
||||
ally.ChangeStatBoost(Statistic.SpecialAttack, 1, true, false);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void OnOpponentFaints(IExecutingMove move, IPokemon target, byte hit)
|
||||
{
|
||||
move.User.ChangeStatBoost(Statistic.SpecialAttack, 1, true, false);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user