Workflow inputs.
The embedded action item.
The actor using the action.
OptionalbusyElement?: BusyElementOptional element to disable during the in-combat queue call.
OptionalconsumeParentCharge?: booleanPass-through flag for the combat queue. Defaults to false.
OptionaldurabilityCost?: numberDurability to consume. Defaults to 0.
OptionalglyphItem?: anyGlyph item for durability. Defaults to null.
OptionalonConsumeParentCharge?: (() => unknown) | nullCallback run after instant resolution. Defaults to null.
Parent item id or glyph UUID.
Resolves when the workflow finishes or stops early.
Shared entry point for an action embedded in another document (an item's embedded action or a glyph's action). Handles the ownership check, resource consumption, glyph durability, combat queuing vs. instant resolution, and optional parent-charge consumption on instant resolution.
Ordering: resources are validated first, so durability is only consumed after they succeed. If durability then fails, the resources are refunded.
NOTE: on the in-combat path, the "no swings" warning fires AFTER resources were consumed, so an action without swings still spends its resources. Preserved as current behavior.
Config:
actor: the owning actor. Nothing happens unlessactor.isOwner.actionItem: the embedded action item (SyntheticActionItem). Nothing happens when falsy.sourceItemId: parent item id, or glyph UUID, passed to the combat queue.consumeParentCharge: whether the combat queue should also consume the parent charge.onConsumeParentCharge: async callback run after an instant resolution to consume the parent charge.glyphItem: glyph item whose durability is consumed (only whendurabilityCost > 0).durabilityCost: durability to consume fromglyphItemafter resources succeed.busyElement: optional element disabled while the in-combat queue call runs.