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

7 lines
256 B
JavaScript

let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {fields : {difficulty : "average"}, skipTargets: true, appendTitle : ` - ${this.effect.name}`})
await test.roll();
if (test.failed)
{
this.actor.addCondition("prone");
}