6 lines
167 B
JavaScript
6 lines
167 B
JavaScript
let newEffect = this.effect.sourceItem.effects?.contents[1]
|
|
|
|
if (newEffect)
|
|
{
|
|
this.actor.createEmbeddedDocuments("ActiveEffect", [newEffect.convertToApplied()]);
|
|
} |