More abilities, implemented support for form inheritance
All checks were successful
Build / Build (push) Successful in 49s
All checks were successful
Build / Build (push) Successful in 49s
This commit is contained in:
16
Plugins/PkmnLib.Plugin.Gen7/Scripts/Abilities/Moxie.cs
Normal file
16
Plugins/PkmnLib.Plugin.Gen7/Scripts/Abilities/Moxie.cs
Normal file
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user