Body, Mind & Soul — API Reference
    Preparing search index...

    Function withSubject

    • Return a new context object with scope/subject computed for the given scope, leaving the original context object untouched. Used by evaluateConditions/executeOutcomes in place of the old destructive targetActor overwrite.

      Parameters

      • context: object

        The trigger dispatch context.

      • Optionalscope: string

        "self" | "attacker" | "target" (default "target").

      Returns object

      A new context object; the input is never mutated.