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

2 lines
184 B
JavaScript

const talents = await Promise.all(["Frenzy", "Magic Resistance"].map(game.wfrp4e.utility.findTalent))
this.actor.createEmbeddedDocuments("Item", talents, {fromEffect : this.effect.id})