foundryvtt-wh4-lang-fr-fr/reference_scripts/Gc8S5TYlVdV8NnOT.js

8 lines
316 B
JavaScript

let test = await args.actor.setupSkill(game.i18n.localize("NAME.Cool"), {skipTargets: true, appendTitle : " - " + this.effect.name, context: { failure: "Gained a Broken Condition", success: "Resisted the Broken Condition" } })
await test.roll();
if (!test.succeeded)
{
args.actor.addCondition("broken");
}