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

    • Applies ability effects without checking 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

      • cancelled: null | BooleanHolder
      • args: any[]

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

      Returns void

    • 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

    • Evaluate the condition to determine if the ConditionalUserFieldStatusEffectImmunityAbAttr can be applied.

      Parameters

      • pokemon: default

        The pokemon with the ability

      • passive: boolean

        unused

      • simulated: boolean

        Whether the ability is being simulated

      • effect: StatusEffect

        The status effect being applied

      • cancelled: BooleanHolder

        Holds whether the status effect was cancelled by a prior effect

      • args: [default, null | default, ...any[]]

        Args[0] is the target of the status effect, Args[1] is the source.

      Returns boolean

      Whether the ability can be applied to cancel the status effect.