pokemon-rogue-battle
    Preparing search index...

    Class PreSwitchOutFormChangeAbAttr

    Attribute for form changes that occur on switching out

    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

    • On switch out, trigger the form change to the one defined in the ability

      Parameters

      • pokemon: default

        The pokemon switching out and changing form 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