pokemon-rogue-battle
    Preparing search index...

    Class ReduceStatusEffectDurationAbAttr

    Used by Early Bird, makes the pokemon wake up faster

    The StatusEffect to check for

    apply

    Hierarchy (View Summary)

    • AbAttr
      • ReduceStatusEffectDurationAbAttr
    Index

    Constructors

    Properties

    showAbility: boolean

    Methods

    • Reduces the number of sleep turns remaining by an extra 1 when applied

      Parameters

      • _pokemon: default
      • _passive: boolean
      • _simulated: boolean
      • _cancelled: BooleanHolder
      • args: any[]

        The args passed to the AbAttr:

        • [0] - The StatusEffect of the Pokemon
        • [1] - The number of turns remaining until the status is healed

      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