using PkmnLib.Plugin.Gen7.Scripts.Pokemon; namespace PkmnLib.Plugin.Gen7.Scripts.Abilities; /// /// Oblivious is an ability that prevents the Pokémon from being infatuated or taunted. /// /// Bulbapedia - Oblivious /// [Script(ScriptCategory.Ability, "oblivious")] public class Oblivious : Script { /// public override void PreventVolatileAdd(IScriptSource parent, Script script, ref bool preventVolatileAdd) { preventVolatileAdd = script switch { Infatuated or TauntEffect => true, _ => preventVolatileAdd, }; } }