namespace PkmnLib.Plugin.Gen7.Scripts.Pokemon; [Script(ScriptCategory.Pokemon, "perish_song")] public class PerishSongEffect : Script { private int _turns; private IPokemon _owner; public PerishSongEffect(IPokemon owner, int turns = 3) { _owner = owner; _turns = turns; } /// public override void OnEndTurn(IScriptSource owner, IBattle battle) { _turns--; if (_turns <= 0) { RemoveSelf(); _owner.Faint(DamageSource.Misc); } } }