2024-05-16 17:57:51 +02:00
|
|
|
let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields : {difficulty: "veasy"}})
|
|
|
|
await test.roll();
|
|
|
|
if (test.failed)
|
|
|
|
{
|
2024-05-17 01:07:37 +02:00
|
|
|
this.script.scriptNotification("Subi une <strong>Blessure Purulente</strong>")
|
2024-05-16 17:57:51 +02:00
|
|
|
let item = await fromUuid("Compendium.wfrp4e-core.items.kKccDTGzWzSXCBOb")
|
|
|
|
this.actor.createEmbeddedDocuments("Item", [item.toObject()])
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2024-05-17 01:07:37 +02:00
|
|
|
this.script.scriptNotification("Evite une <strong>Blessure Purulente</strong>")
|
2024-05-16 17:57:51 +02:00
|
|
|
}
|