pokemon-rogue-battle
    Preparing search index...

    Class SpeciesFormChangeWeatherTrigger

    Class used for triggering form changes based on weather. Used by Castform and Cherrim.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    ability: Abilities

    The ability that triggers the form change

    description: string = ""
    weathers: WeatherType[]

    The list of weathers that trigger the form change

    Methods

    • Checks if the Pokemon has the required ability and is in the correct weather while the weather or ability is also not suppressed.

      Parameters

      • pokemon: default

        the pokemon that is trying to do the form change

      Returns boolean

      true if the Pokemon can change forms, false otherwise