pokemon-rogue-battle
    Preparing search index...

    Class PokemonTurnData

    Temporary data for a Pokemon. Resets at the start of a new turn, as well as on switch.

    Index

    Constructors

    Properties

    acted: boolean = false
    attacksReceived: AttackMoveResult[] = []
    berriesEaten: BerryType[] = []

    All berries eaten by this pokemon in this turn. Saved into SummonData by Abilities.CUD_CHEW on turn end.

    combiningPledge?: Moves
    damageTaken: number = 0
    extraTurns: number = 0

    Used to make sure multi-hits occur properly when the user is forced to act again in the same turn

    failedRunAway: boolean = false
    flinched: boolean = false
    hitCount: number = 0

    How many times the current move should hit the target(s)

    hitsLeft: number = -1
    • -1 = Calculate how many hits are left
    • 0 = Move is finished
    joinedRound: boolean = false
    moveEffectiveness: null | TypeDamageMultiplier = null
    order: number
    singleHitDamageDealt: number = 0
    statStagesDecreased: boolean = false
    statStagesIncreased: boolean = false
    switchedInThisTurn: boolean = false
    totalDamageDealt: number = 0