Deukhoofd 8363b955af
All checks were successful
Build / Build (push) Successful in 49s
More abilities, implemented support for form inheritance
2025-06-13 12:24:03 +02:00

16 lines
537 B
C#

namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
/// <summary>
/// Moxie is an ability that raises the user's Attack stat after knocking out a Pokémon.
///
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Moxie_(Ability)">Bulbapedia - Moxie</see>
/// </summary>
[Script(ScriptCategory.Ability, "moxie")]
public class Moxie : Script
{
/// <inheritdoc />
public override void OnOpponentFaints(IExecutingMove move, IPokemon target, byte hit)
{
move.User.ChangeStatBoost(Statistic.Attack, 1, true, false);
}
}