mwg API
    Preparing search index...

    Interface AttackPreviewOptions

    interface AttackPreviewOptions {
        attacker: PreviewCombatant;
        chanceToHit?: number;
        damage: number;
        defender: PreviewCombatant;
        hits?: readonly boolean[];
        strikeDuration?: number;
        strikes: number;
    }
    Index
    chanceToHit?: number

    chance to hit, 0 to 1; 1 (always hits) when omitted

    damage: number

    damage per strike, from the game's own formula - mwg supplies none

    hits?: readonly boolean[]

    which strikes land; every strike when omitted, for the maximum-damage preview

    strikeDuration?: number

    seconds between strikes in the animation; 0 when there is no animation

    strikes: number