Skip to content

[#5559] Add activity behavior for Apply Active Effect behavior#6798

Open
arbron wants to merge 1 commit into
activity/behaviorsfrom
activity/behavior-apply-ae
Open

[#5559] Add activity behavior for Apply Active Effect behavior#6798
arbron wants to merge 1 commit into
activity/behaviorsfrom
activity/behavior-apply-ae

Conversation

@arbron

@arbron arbron commented Mar 3, 2026

Copy link
Copy Markdown
Collaborator

Adds a new activity behavior that creates core's Apply Active Effect Region Behavior.

Adds a new activity behavior that creates core's Apply Active
Effect Region Behavior.
@arbron arbron force-pushed the activity/behavior-apply-ae branch from ae9ba6b to 582ee90 Compare June 2, 2026 17:51
createBehaviorData(activity, options={}) {
return {
system: {
effects: this.effects

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DifficultTerrainActivityBehavior uses Array.from(this.types) on its own SetField. Should they be consistent? Or are they only cosmetically similar?

Comment thread module/config.mjs
* @enum {ActivityBehaviorConfiguration}
*/
DND5E.activityBehaviorTypes = {
appylActiveEffect: {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
appylActiveEffect: {
applyActiveEffect: {

*/

/**
* Data model representing the difficult terrain activity behavior configuration.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Data model representing the difficult terrain activity behavior configuration.
* Data model representing the active effect activity behavior configuration.

/** @override */
static defineSchema() {
return {
effects: new SetField(new DocumentUUIDField())

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
effects: new SetField(new DocumentUUIDField())
effects: new SetField(new DocumentUUIDField({ type: "ActiveEffect", nullable: false }))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants