pokemon-rogue-battle
    Preparing search index...

    Class ConditionalUserFieldProtectStatAbAttr

    Conditionally provides immunity to stat drop effects to the user's field.

    Used by Flower Veil.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    condition: (target: default) => boolean

    If the method evaluates to true, the stat will be protected.

    protectedStat?: ATK | DEF | SPATK | SPDEF | SPD | ACC | EVA

    BattleStat to protect or undefined if all BattleStat are protected

    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