Interface BattleActivePokemon

Active pokemon

Hierarchy

  • BattleActivePokemon

Properties

Ability

boosts: Map<StatName, number>

Boosts

condition: PokemonCondition

Condition

Details

Ident

index: number

Index of the pokemon in the team

Item

lastMove?: string

Last move used (for encore, disabled, etc)

moves: Map<string, PokemonMove>

Moves

singleMoveStatuses: Set<string>

Single move statuses

singleTurnStatuses: Set<string>

List of single turn statuses

sleptByRest: boolean

True if slept by rest

slot: number

Slot

Stats

switchedOnTurn: number

Turn the when pokemon was switched

timesHit: number

Number of times the pokemon was hit by a move

timesUsedMoveInARow?: number

Times used the last move in a row

totalBurnedSleepTurns: number

Total number of burned sleep turns

volatiles: Set<string>

List of active volatiles

volatilesData: {
    boostedStat?: StatName;
    burnedSleepTurns?: number;
    fake?: boolean;
    fakeGuess?: string;
    fallenLevel?: number;
    impersonating?: number;
    moveDisabled?: string;
    moveMimic?: string;
    perishTurnsLeft?: number;
    possibleFake?: boolean;
    stockpileLevel?: number;
    toxDamageTimes?: number;
    transformedInfo?: {
        details: PokemonDetails;
        moves: Map<string, PokemonMove>;
        playerIndex: number;
        pokemonIndex: number;
        stats: PokemonKnownStatsTransform;
    };
    typeAdded?: string;
    typesChanged?: string[];
}

Arguments for the volatiles

Type declaration

  • Optional boostedStat?: StatName

    Boosted stat for ProtoSynthesis and Quark Drive

  • Optional burnedSleepTurns?: number

    Burned sleep turns since switch in

  • Optional fake?: boolean

    This pokemon is an illusion for sure

  • Optional fakeGuess?: string

    Guess of the pokemon species this could be

  • Optional fallenLevel?: number

    Number of fallen pokemon (Boosting Supreme Overlord)

  • Optional impersonating?: number

    Index of the pokemon being impersonated

  • Optional moveDisabled?: string

    Move disabled

  • Optional moveMimic?: string

    Move mimicking

  • Optional perishTurnsLeft?: number

    Number of perish song turns left

  • Optional possibleFake?: boolean

    This pokemon could be a fake (Illusion)

  • Optional stockpileLevel?: number

    Number of stockpile levels (0 - 3)

  • Optional toxDamageTimes?: number

    The number of times the TOX status took effect Each time, the damage doubles

  • Optional transformedInfo?: {
        details: PokemonDetails;
        moves: Map<string, PokemonMove>;
        playerIndex: number;
        pokemonIndex: number;
        stats: PokemonKnownStatsTransform;
    }

    Details of the pokemon transformed into

  • Optional typeAdded?: string

    Type added

  • Optional typesChanged?: string[]

    Types changed

Generated using TypeDoc