foundryvtt-wh4-lang-fr-fr/scripts/6elUNF58TaiYjxcx.js

6 lines
246 B
JavaScript

let test = await this.actor.setupCharacteristic("wp", {skipTargets: true, appendTitle : " - " + this.effect.name, context : {failure: "Gained a Stunned Condition"}})
await test.roll();
if (test.failed)
{
this.actor.addCondition("stunned");
}