PokéRogue
    Preparing search index...

    Interface getAttackDamageParams

    Type for the parameters of getAttackDamage

    interface getAttackDamageParams {
        effectiveness?: number;
        ignoreAbility?: boolean;
        ignoreAllyAbility?: boolean;
        ignoreSourceAbility?: boolean;
        ignoreSourceAllyAbility?: boolean;
        isCritical?: boolean;
        move: Move;
        simulated?: boolean;
        source: Pokemon;
    }
    Index

    Properties

    effectiveness?: number

    If defined, used in place of calculated effectiveness values

    ignoreAbility?: boolean

    If true, ignores this Pokemon's defensive ability effects

    ignoreAllyAbility?: boolean

    If true, ignores the ally Pokemon's ability effects

    ignoreSourceAbility?: boolean

    If true, ignores the attacking Pokemon's ability effects

    ignoreSourceAllyAbility?: boolean

    If true, ignores the ability effects of the attacking pokemon's ally

    isCritical?: boolean

    If true, calculates damage for a critical hit

    move: Move

    The move used in the attack

    simulated?: boolean

    If true, suppresses changes to game state during the calculation

    source: Pokemon

    The attacking Pokemon