mwg API
    Preparing search index...

    Interface AttackDialogOptions

    interface AttackDialogOptions {
        canTarget?: (
            attacker: SelectableUnit,
            target: SelectableUnit,
        ) => boolean;
        damageFor: (
            attacker: SelectableUnit,
            target: SelectableUnit,
        ) => StrikeNumbers;
        disabled?: (unit: SelectableUnit) => boolean;
        side?: string;
        strikeDuration?: number;
        units: readonly SelectableUnit[];
    }
    Index
    canTarget?: (attacker: SelectableUnit, target: SelectableUnit) => boolean
    damageFor: (attacker: SelectableUnit, target: SelectableUnit) => StrikeNumbers

    the game's damage rules, called once the attacker and target are both chosen

    disabled?: (unit: SelectableUnit) => boolean
    side?: string
    strikeDuration?: number

    seconds between strikes in the preview animation

    units: readonly SelectableUnit[]