Constructors

Properties

bgm: string
biomeType: Biome
eventTarget: EventTarget = ...
ignoreAbilities: boolean
scene: default
tags: ArenaTag[]
terrain: Terrain
weather: Weather

Methods

  • Parameters

    • attackType: Type
    • grounded: boolean

    Returns number

  • Gets the denominator for the chance for a trainer spawn

    Returns number

    n where 1/n is the chance of a trainer battle

  • Parameters

    • waveIndex: number
    • level: number
    • Optionalattempt: number
    • OptionalluckValue: number

    Returns default

  • Clears terrain and arena tags when entering new biome or trainer battle.

    Returns void

  • Parameters

    • ignoreAbilities: boolean = true

    Returns void

  • Parameters

    • terrain: TerrainType
    • hasPokemonSource: boolean
    • ignoreAnim: boolean = false

    Returns boolean

  • Attempts to set a new weather to the battle

    Parameters

    • weather: WeatherType

      new weather to set of type WeatherType

    • hasPokemonSource: boolean

      is the new weather from a pokemon

    Returns boolean

    true if new weather set, false if no weather provided or attempting to set the same weather as currently in use

  • Sets weather to the override specified in overrides.ts

    Parameters

    • weather: WeatherType

      new weather to set of type WeatherType

    Returns boolean

    true to force trySetWeather to return true