7 lines
570 B
JavaScript
7 lines
570 B
JavaScript
|
let fear = await fromUuid("Compendium.wfrp4e-core.items.Item.pTorrE0l3VybAbtn")
|
||
|
let leader = await fromUuid("Compendium.wfrp4e-core.items.Item.vCgEAetBMngR53aT")
|
||
|
let fearData = fear.toObject();
|
||
|
let leaderData = leader.toObject();
|
||
|
fearData.system.specification.value = this.effect.sourceTest.result.overcast.usage.other.current;
|
||
|
talents = new Array(1 + this.effect.sourceTest.result.overcast.available).fill(leaderData); // Assume any unused overcast is for war leader
|
||
|
this.actor.createEmbeddedDocuments("Item", [fearData].concat(talents), {fromEffect : this.effect.id})
|