pokemon-rogue-battle
    Preparing search index...

    Class AllyStatMultiplierAbAttr

    Multiplies a Stat from an ally pokemon's ability.

    Hierarchy (View Summary)

    • AbAttr
      • AllyStatMultiplierAbAttr
    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

    • Multiply a Pokemon's Stat due to an Ally's ability.

      Parameters

      • _pokemon: default

        The ally Pokemon with the ability (unused)

      • _passive: boolean
      • _simulated: boolean

        Whether the ability is being simulated (unused)

      • _stat: ATK | DEF | SPATK | SPDEF | SPD | ACC | EVA

        The type of the checked Stat (unused)

      • statValue: NumberHolder

        Utils.NumberHolder containing the value of the checked stat

      • _checkedPokemon: default

        The Pokemon this ability is targeting (unused)

      • _ignoreAbility: boolean

        Whether the ability should be ignored if possible

      • _args: any[]

        unused

      Returns void

      true if this changed the checked stat, false otherwise.

    • 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

    • Check if this ability can apply to the checked stat.

      Parameters

      • pokemon: default

        The ally Pokemon with the ability (unused)

      • _passive: boolean
      • simulated: boolean

        Whether the ability is being simulated (unused)

      • stat: ATK | DEF | SPATK | SPDEF | SPD | ACC | EVA

        The type of the checked Stat

      • statValue: NumberHolder

        Utils.NumberHolder containing the value of the checked stat

      • checkedPokemon: default

        The Pokemon this ability is targeting (unused)

      • ignoreAbility: boolean

        Whether the ability should be ignored if possible

      • args: any[]

        unused

      Returns boolean

      true if this can apply to the checked stat, false otherwise.