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

14 lines
349 B
JavaScript

let damage = 0
let test = await this.actor.setupSkill("Dodge", {skipTargets: true, appendTitle : ` - ${this.effect.name}`});
await test.roll();
if (test.succeeded)
{
damage = 10;
}
else if (test.failed)
{
damage = 20;
}
this.script.scriptMessage(await this.actor.applyBasicDamage(damage, {loc : "roll", hideDSN: true, suppressMsg : true}))