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

    Function resolveAuraShapes

    • Resolve the shapes for an aura Region, preferring template-placement anchor when available. For zone-type auras created via template-targeting (eachTemplate/allTemplate), returns shapes from the captured template region. Otherwise falls back to token-anchored shapes.

      Parameters

      • auraEffect: ActiveEffect

        The aura effect

      • OptionalownerTokenGetter: Function = _ownerToken

        Function to resolve owner token (allows testing with mocks)

      Returns { ownerToken: any; shapes: RegionShapeData[] | null } | null

      Returns { shapes, ownerToken } on success, null if no token and no anchor found. For zone+anchor cases, ownerToken is null. For other cases, ownerToken is populated.