PkmnLib.NET/Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/DragonAscent.cs

15 lines
471 B
C#
Raw Normal View History

2025-01-27 11:18:48 +00:00
using PkmnLib.Static;
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
2025-02-01 14:00:22 +00:00
[Script(ScriptCategory.Move, "dragon_ascent")]
public class DragonAscent : Script
2025-01-27 11:18:48 +00:00
{
/// <inheritdoc />
public override void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
{
2025-02-01 14:00:22 +00:00
EventBatchId batchId = new();
move.User.ChangeStatBoost(Statistic.Defense, -1, true, batchId);
move.User.ChangeStatBoost(Statistic.SpecialDefense, -1, true, batchId);
2025-01-27 11:18:48 +00:00
}
}