foundryvtt-wh4-lang-fr-fr/reference_scripts/86ivOsBQAuu0UmFg.js

6 lines
251 B
JavaScript
Raw Permalink Normal View History

2024-06-06 21:09:27 +02:00
let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {fields : {difficulty : "hard"}, appendTitle : ` - ${this.effect.name}`, skipTargets: true});
await test.roll();
if (test.failed)
{
this.actor.addCondition("poisoned");
}