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

13 lines
326 B
JavaScript

const test = await args.actor.setupSkill(game.i18n.localize("NAME.Cool"), {
skipTargets: true,
appendTitle: `${this.effect.name}`,
fields: {difficulty: "challenging"},
context: {
failure: `Gain d'1 état @Condition[Stunned].`
}
});
await test.roll();
if (test.failed)
args.actor.addCondition("stunned");