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

4 lines
360 B
JavaScript
Raw Permalink Normal View History

let choice = await ItemDialog.create(this.actor.itemTypes.critical, (this.effect.sourceTest.result.overcast.usage.other.current || 1), "Choose the Critical Wounds to heal (cannot reattach body parts)")
this.script.scriptMessage(`Healed <strong>${choice.map(i => i.name).join(`, `)}</strong>`);
this.actor.deleteEmbeddedDocuments("Item", choice.map(i => i.id))