Files
foundryvtt-wh4-lang-fr-fr/scripts/rXuOTYAOHCiW167c.js
T
uberwald 38d88c2f19
Validation JSON / validate (push) Successful in 13s
Mise àjour vers 9.6.0
2026-05-18 07:23:40 +02:00

14 lines
800 B
JavaScript

let difficulty = ""
if (this.effect.name.includes("Moderate"))
difficulty = "easy"
else if (this.effect.name.includes("Severe"))
difficulty = "average"
else
difficulty = "veasy"
let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {context : {failure : this.actor.name + " dies from Blight"}, fields: {difficulty}, appendTitle : " - Blight"})
await test.roll();
if (test.failed)
{
this.actor.addCondition("dead");
}