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

    Function pushEffectToPartyMembers

    • Push a single effect to all party members with a given initial stack count. Creates one ActiveEffect record per member on the party, then creates a partyEffectLink pointer item on each member's actor.

      Uses a mutex scoped to the party document to prevent concurrent push/un-push races.

      Parameters

      • members: Actor[]

        The actor documents to push the effect to

      • sourceEffectUuid: string

        UUID of the effect/stackable-effect to apply (ActiveEffect or journal page)

      • initialStackCount: number = 1

        Initial stack count for stackable effects (ignored for non-stackable)

      • party: Actor

        The party actor document that will hold the effect records

      Returns Promise<Map<string, { effect: ActiveEffect; linkItem: Item }>>

      Map of memberId → {effect, linkItem}