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

7 lines
283 B
JavaScript
Raw Permalink Normal View History

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