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.Échoué) { this.actor.addCondition("dead"); }