pokemon-rogue-battle
    Preparing search index...

    Class ConditionalUserFieldStatusEffectImmunityAbAttr

    Conditionally provides immunity to status effects to the user's field.

    Used by Flower Veil.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    condition: (target: default, source: null | default) => boolean

    The condition for the field immunity to be applied.

    Type declaration

      • (target: default, source: null | default): boolean
      • Parameters

        • target: default

          The target of the status effect

        • source: null | default

          The source of the status effect

        Returns boolean

    immuneEffects: StatusEffect[]
    showAbility: boolean

    Methods

    • Returns a boolean describing whether the ability can be applied under current conditions

      Parameters

      • _pokemon: default

        The pokemon to apply this ability to

      • _passive: boolean

        Whether or not the ability is a passive

      • _simulated: boolean

        Whether the call is simulated

      • _args: any[]

        Extra args passed to the function. Handled by child classes.

      Returns boolean

      true if the ability can be applied, false otherwise

      apply