pokemon-rogue-battle
    Preparing search index...

    Class PostWeatherChangeFormChangeAbAttr

    Triggers weather-based form change when weather changes. Used by Forecast and Flower Gift.

    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

    • Calls Arena.triggerWeatherBasedFormChangesToNormal | triggerWeatherBasedFormChangesToNormal when the weather changed to form-reverting weather, otherwise calls Arena.triggerWeatherBasedFormChanges | triggerWeatherBasedFormChanges

      Parameters

      • pokemon: default

        the Pokemon with this ability

      • passive: boolean

        n/a

      • simulated: boolean
      • weather: WeatherType

        n/a

      • 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