roll-parser - v3.4.0
    Preparing search index...

    Type Alias KeepDropNode

    KeepDropNode: NodeSpan & {
        count: ASTNode;
        kind: "keep" | "drop";
        selector: "highest" | "lowest";
        target: ASTNode;
        type: "KeepDrop";
    }

    Keep/drop modifier node (khN, klN, dhN, dlN, and the kN shorthand for khN).

    Wraps a dice expression with keep highest/lowest or drop highest/lowest. An omitted count defaults to 1, so 4d6kh is 4d6kh1. count is a full sub-expression, so 4d6kh(1d2) is legal — and its dice are drawn before the pool.

    Chained modifiers (4d6kh3dl1) do not nest: the evaluator flattens the chain and applies each spec independently to the same pool, unioning the dropped sets, which is the Roll20 rule.