namespace PkmnLib.Plugin.Gen7.Scripts.Abilities; /// /// Immunity is an ability that prevents the Pokémon from being poisoned. /// /// Bulbapedia - Immunity /// [Script(ScriptCategory.Ability, "immunity")] public class Immunity : Script, IScriptPreventStatusChange { /// public void PreventStatusChange(IPokemon pokemon, StringKey status, bool selfInflicted, ref bool preventStatus) { if (status == ScriptUtils.ResolveName() || status == ScriptUtils.ResolveName()) { preventStatus = true; } } }