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

6 lines
167 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
let newEffect = this.effect.sourceItem.effects?.contents[1]
if (newEffect)
{
this.actor.createEmbeddedDocuments("ActiveEffect", [newEffect.convertToApplied()]);
}