pokemon-rogue-battle
    Preparing search index...

    Interface TypeMultiplierAbAttrParams

    Shared interface used by several PreDefendAbAttr abilities that influence the computed type effectiveness

    interface TypeMultiplierAbAttrParams {
        cancelled: BooleanHolder;
        move: Move;
        opponent: Pokemon;
        passive?: boolean;
        pokemon: Pokemon;
        simulated?: boolean;
        typeMultiplier: NumberHolder;
    }

    Hierarchy (View Summary)

    Index

    Properties

    cancelled: BooleanHolder

    Its particular meaning depends on the ability attribute, though usually means that the "no effect" message should not be played

    move: Move

    The move used by (or against, for defend attributes) the pokemon with the ability

    opponent: Pokemon

    The pokemon on the other side of the interaction

    passive?: boolean

    (For callers of applyAbAttrs): If provided, only apply ability attributes of the passive (true) or active (false).

    This should almost always be left undefined, as otherwise it will only apply attributes of either the pokemon's passive (true) or non-passive (false) ability. In almost all cases, you want to apply attributes that are from either.

    (For implementations of AbAttr): This will never be undefined, and will be true if the ability being applied is the pokemon's passive, and false otherwise.

    pokemon: Pokemon

    The pokemon that has the ability being applied

    simulated?: boolean

    Whether the ability's effects are being simulated (for instance, during AI damage calculations).

    Used to prevent message flyouts and other effects from being triggered.

    false

    typeMultiplier: NumberHolder

    Holds the type multiplier of an attack. In the case of an immunity, this value will be set to 0.