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

2 lines
186 B
JavaScript

const talents = await Promise.all(["Assaut féroce", "Pied marin"].map(game.wfrp4e.utility.findTalent))
this.actor.createEmbeddedDocuments("Item", talents, {fromEffect : this.effect.id})