Files
foundryvtt-wh4-lang-fr-fr/scripts/gull3qgCahzk2xYu.js

10 lines
287 B
JavaScript

this.actor.addCondition("fatigued", parseInt(this.effect.sourceTest.result.SL))
let test = await this.actor.setupSkill("Calme", {fields : {difficulty: "challenging"}, appendTitle : ` - ${this.effect.name}`});
await test.roll();
if (test.failed)
{
this.actor.addCondition("broken");
}