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

    Function executeSwingTriggers

    • Execute swing triggers for a resolved swing, iterating over targets as configured.

      Parameters

      • triggers: object[]

        The swing's triggers array

      • ownerActor: Actor

        The actor who owns the action

      • actionItem: Item

        The action item document

      • actionData: object

        The full tracker action data object

      • Optionaloptions: { advantageStage?: number; globalStartIndex?: number; priorAccumulator?: any[] } = {}
        • OptionaladvantageStage?: number

          Advantage/disadvantage stage for draw resolution

        • OptionalglobalStartIndex?: number

          Global 0-based index of the first trigger in this batch

        • OptionalpriorAccumulator?: any[]

          Accumulated results from prior swings

      Returns Promise<{ accumulator: any[]; wasNegated: boolean }>