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

5 lines
267 B
JavaScript
Raw Normal View History

2024-05-16 17:57:51 +02:00
let item = await fromUuid("Compendium.wfrp4e-core.items.9GNpAqgsKzxZKJpp")
let data = item.toObject();
data.system.specification.value = "Lorsque seul";
2024-05-16 17:57:51 +02:00
data.effects[0].disabled = true;
this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id})