PokéRogue
    Preparing search index...

    Interface GetEffectiveStatParams

    Parameters for Pokemon#getEffectiveStat

    Does not include the stat parameter, which is passed outside of the object.

    interface GetEffectiveStatParams {
        forDefend?: boolean;
        ignoreAbility?: boolean;
        ignoreAllyAbility?: boolean;
        ignoreHeldItems?: boolean;
        ignoreOppAbility?: boolean;
        isCritical?: boolean;
        move?: Move;
        opponent?: Pokemon;
        simulated?: boolean;
    }
    Index

    Properties

    forDefend?: boolean

    Whether the stat is being calculated as though the move is being used against this Pokémon.

    false

    Currently only used to ignore the weather boost for sandstorm/snow when the opponent has Mega Sol.

    ignoreAbility?: boolean

    Whether to ignore the user's ability during the calculation

    false

    ignoreAllyAbility?: boolean

    Whether to ignore the ability of the opponent's ally

    false

    For example, the effects of the ally's Flower Gift ability

    ignoreHeldItems?: boolean

    Whether to ignore this pokemon's held items

    false

    ignoreOppAbility?: boolean

    Whether to ignore the opponent's ability during the calculation

    false

    isCritical?: boolean

    Whether the move being used will land as a critical hit

    false

    Used to ignore offensive/defensive stat stage drops/boosts.

    move?: Move

    The move being used in the interaction

    Passed to respect the effects of moves that ignore stat changes.

    opponent?: Pokemon

    The other pokemon in the interaction

    Used to respect the abilities for the interaction; (unaware, mega sol, ally's flower gift)

    simulated?: boolean

    Whether to suppress changes to game state

    true

    Passed to the applyAbAttrs method invocations