foundryvtt-wh4-lang-fr-fr/reference_scripts/YyKU2rIRmFSCqSlW.js

6 lines
167 B
JavaScript
Raw Permalink Normal View History

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