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

4 lines
379 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), "Choisissez la Blessure Critique à soigner (ne peut guérir les membres perdus)")
2024-05-16 17:57:51 +02:00
this.script.scriptMessage(`Guéri de <strong>${choice.map(i => i.name).join(`, `)}</strong>`);
2024-05-16 17:57:51 +02:00
this.actor.deleteEmbeddedDocuments("Item", choice.map(i => i.id))