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

18 lines
418 B
JavaScript
Raw Normal View History

2024-10-08 20:52:09 +02:00
if (args.actor.has("Démoniaque")) {
args.totalWoundLoss += 3;
args.modifiers.other.push({label: this.effect.name, value: 3});
}
let test = await args.actor.setupSkill("Endurance", {
appendTitle: ` ${this.effect.name}`,
skipTargets: true,
characteristic: 't',
context: {
failure: "Received 1 Blinded Condition"
}
});
await test.roll();
if (test.failed) {
args.actor.addCondition("blinded");
}