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

8 lines
316 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
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");
}