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

    Function processDirectTriggers

    • Process triggers directly on a document (card or usable item) without iterating all actors. Called and awaited before the hook fires.

      Parameters

      • triggers: any[]

        The triggers array from the document's system data

      • hookName: string

        The hook to match against

      • hookArgs: any[]

        Arguments that would be passed to the hook

      • actor: Actor

        The actor to apply outcomes to

      • sourceDoc: Document

        The source document (Card or Item)

      • OptionalextraContext: object = {}

        Additional context (e.g. cardDoc, deck)

      Returns Promise<void>