2025-06-15 12:29:13 +02:00

12 lines
403 B
C#

namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
[Script(ScriptCategory.Move, "toxic_thread")]
public class ToxicThread : Script
{
/// <inheritdoc />
public override void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
{
target.SetStatus(ScriptUtils.ResolveName<Status.Poisoned>(), move.User);
target.ChangeStatBoost(Statistic.Speed, -1, false, false);
}
}