pokemon-rogue-battle
    Preparing search index...

    Class CommanderAbAttr

    Attribute implementing the effects of Commander. When the source of an ability with this attribute detects a Dondozo as their active ally, the source "jumps into the Dondozo's mouth," sharply boosting the Dondozo's stats, cancelling the source's moves, and causing attacks that target the source to always miss.

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