pokemon-rogue-battle
    Preparing search index...

    Class PokemonSummonDataSealed

    Persistent in-battle data for a Pokemon. Resets on switch or new battle.

    Index

    Constructors

    Properties

    ability: undefined | AbilityId
    abilitySuppressed: boolean = false
    addedType: null | PokemonType = null
    berriesEatenLast: BerryType[] = []

    Array containing all berries eaten in the last turn; used by AbilityId.CUD_CHEW

    fusionGender: undefined | Gender
    fusionSpeciesForm: null | PokemonSpeciesForm = null
    gender: undefined | Gender
    illusion: null | IllusionData = null

    Data pertaining to this pokemon's illusion.

    illusionBroken: boolean = false
    moveHistory: TurnMove[] = []

    An array of all moves this pokemon has used since entering the battle. Used for most moves and abilities that check prior move usage or copy already-used moves.

    moveQueue: TurnMove[] = []

    A queue of moves yet to be executed, used by charging, recharging and frenzy moves. So long as this array is nonempty, this Pokemon's corresponding CommandPhase will be skipped over entirely in favor of using the queued move. TODO: Clean up a lot of the code surrounding the move queue.

    moveset: null | PokemonMove[]
    passiveAbility: undefined | AbilityId
    speciesForm: null | PokemonSpeciesForm = null
    stats: number[] = ...
    statStages: number[] = ...

    [Atk, Def, SpAtk, SpDef, Spd, Acc, Eva]

    tags: BattlerTag[] = []
    types: PokemonType[] = []

    Methods

    • Serialize this PokemonSummonData to JSON, converting PokemonSpeciesForm and IllusionData.fusionSpecies into simpler types instead of serializing all of their fields.

      Returns SerializedPokemonSummonData

      • IllusionData.fusionSpecies is serialized as just the species ID
      • PokemonSpeciesForm and PokemonSpeciesForm.fusionSpeciesForm are converted into SerializedSpeciesForm objects