foundryvtt-wh4-lang-fr-fr/reference_scripts/LXEUhHuXe8keEPI9.js

7 lines
283 B
JavaScript
Raw Normal View History

let test = await this.actor.setupCharacteristic("wp", {fields: {difficulty : "average"}, skipTargets: true, appendTitle : ` - ${this.effect.name}`})
await test.roll();
if (test.failed)
{
let stuns = Math.max(1, Math.abs(test.result.SL))
this.actor.addCondition("stunned", stuns)
}