foundryvtt-wh4-lang-fr-fr/reference_scripts/8ZAUBSH9CM9OTpTL.js

11 lines
328 B
JavaScript
Raw Permalink Normal View History

let test = await this.actor.setupSkill(game.i18n.localize("NAME.Perception"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields : {difficulty : "easy"}});
await test.roll();
if (test.succeeded)
{
this.actor.addCondition("stunned")
}
else if (test.failed)
{
this.actor.addCondition("poisoned", 2);
}