foundryvtt-wh4-lang-fr-fr/reference_scripts/NkqtQaLEGYst0PUO.js

5 lines
224 B
JavaScript
Raw Permalink Normal View History

if (this.actor.has("Magic Resistance", "talent"))
return
let item = await fromUuid("Compendium.wfrp4e-core.items.Item.eowbsW6oHGSNJmxV")
this.actor.createEmbeddedDocuments("Item", [item], {fromEffect : this.effect.id})