Files
foundryvtt-wh4-lang-fr-fr/scripts/WOpRJluHKER1MdgI.js
LeRatierBretonnier 8862698262
All checks were successful
Validation JSON / validate (push) Successful in 15s
Release Creation / build (release) Successful in 57s
Nombreuses corections de scripts...
2026-03-07 15:02:18 +01:00

14 lines
804 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.Résistance"), {context : {failure : this.actor.name + " meurt de la Pourriture"}, fields: {difficulty}, appendTitle : " - Pourriture"})
await test.roll();
if (test.failed)
{
this.actor.addCondition("dead");
}