using PkmnLib.Plugin.Gen7.Scripts.Pokemon; namespace PkmnLib.Plugin.Gen7.Scripts.Side; public class SafeguardEffect : Script { /// public override void PreventStatusChange(IPokemon pokemon, StringKey status, bool selfInflicted, 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; } }