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

11 lines
328 B
JavaScript
Raw Permalink Normal View History

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