if (this.actor.Species.toLowerCase() != "skaven") { this.actor.setupCharacteristic("t", {skipTargets: true, appendTitle : ` - Utilise ${this.effet.name}`, fields: { difficulty: "difficult" } }).then(async Test => { await Test.roll() if (Test.Échoué) { let toughnessLost = Math.ceil(CONFIG.Dice.randomUniform() * 10) this.actor.update({ "system.characteristics.t.initial": this.actor.characteristics.t.initial - toughnessLost }) this.script.message(`${this.actor.prototypeToken.name} Perte de ${toughnessLost} Endurance`) } }) }