• Create embedded ActiveEffect documents on a document.

    Parameters

    • doc: any

      The document to create the effects on (an Item or Actor).

    • effectsData: object[]

      Plain ActiveEffect creation data.

    Returns Promise<any[]>

    The created effect documents, or an empty array.

    The Foundry-free way for the logic layer to attach an Active Effect — e.g. a treatment Course Bonus on an affliction (#1183). The caller passes the owning document and plain effect-creation data; this boundary performs the write. No-op when the document cannot host effects.