More abilities, implemented support for form inheritance
Build / Build (push) Successful in 49s

This commit is contained in:
Deukhoofd committed 2025-06-13 12:24:03 +02:00
1 parent 6d71de375e
commit 8363b955af
16 files changed
+503 -10

No files matched your search

@@ -0,0 +1,16 @@
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);
}
}