using PkmnLib.Plugin.Gen7.Scripts.Pokemon; using PkmnLib.Static.Utils; namespace PkmnLib.Plugin.Gen7.Scripts.Side; public class SafeguardEffect : Script { /// public override void PreventStatusChange(IPokemon pokemonImpl, StringKey status, ref bool preventStatus) { preventStatus = true; } /// public override void PreventVolatileAdd(Script script, ref bool preventVolatileAdd) { if (script.Category == ScriptCategory.Pokemon && script.Name == ScriptUtils.ResolveName()) preventVolatileAdd = true; } }