2024-05-16 17:57:51 +02:00
|
|
|
let criticals = this.actor.itemTypes.critical;
|
|
|
|
|
|
|
|
if (criticals.length)
|
|
|
|
{
|
2024-05-17 12:46:44 +02:00
|
|
|
this.script.scriptNotification("Ne peut subir de Blessures Critiques");
|
2024-05-16 17:57:51 +02:00
|
|
|
this.actor.deleteEmbeddedDocuments("Item", criticals.map(i => i.id))
|
|
|
|
}
|
|
|
|
|
|
|
|
if (getProperty(args.data, "system.status.wounds.value") == 0)
|
|
|
|
{
|
2024-05-17 12:46:44 +02:00
|
|
|
this.script.scriptNotification(`Endormi pour ${Math.ceil(CONFIG.Dice.randomUniform() * 10)} Rounds`)
|
2024-05-16 17:57:51 +02:00
|
|
|
}
|