pokemon-rogue-battle
    Preparing search index...

    Class DownloadAbAttr

    Download raises either the Attack stat or Special Attack stat by one stage depending on the foe's currently lowest defensive stat: it will raise Attack if the foe's current Defense is lower than its current Special Defense stat; otherwise, it will raise Special Attack.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    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

    • Checks to see if it is the opening turn (starting a new game), if so, Download won't work. This is because Download takes into account vitamins and items, so it needs to use the Stat and the stat alone.

      Parameters

      • pokemon: default

        Pokemon that is using the move, as well as seeing the opposing pokemon.

      • passive: boolean

        N/A

      • simulated: boolean
      • args: any[]

        N/A

      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