Implements several more moves

This commit is contained in:
Deukhoofd committed 2025-01-27 12:18:48 +01:00
1 parent 549b92048a
commit 3a75493912
26 files changed
+676 -38

No files matched your search

@@ -0,0 +1,18 @@
using System;
using PkmnLib.Static;
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
[Script(ScriptCategory.Move, "reset_target_stats")]
public class ResetTargetStats : Script
{
/// <inheritdoc />
public override void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
{
EventBatchId eventBatchId = new();
foreach (Statistic stat in Enum.GetValues(typeof(Statistic)))
{
target.ChangeStatBoost(stat, (sbyte)-target.StatBoost.GetStatistic(stat), true, eventBatchId);
}
}
}