pokemon-rogue-battle
    Preparing search index...

    Class MoodyAbAttr

    Attribute used for Abilities.MOODY

    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

    • Randomly increases one stat stage by 2 and decreases a different stat stage by 1

      Parameters

      • pokemon: default

        Pokemon that has this ability

      • passive: boolean

        N/A

      • simulated: boolean

        true if applying in a simulated call.

      • args: any[]

        N/A

        Any stat stages at +6 or -6 are excluded from being increased or decreased, respectively If the pokemon already has all stat stages raised to 6, it will only decrease one stat stage by 1 If the pokemon already has all stat stages lowered to -6, it will only increase one stat stage by 2

      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