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

14 lines
351 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
let damage = 0
let test = await this.actor.setupSkill("Esquive", {skipTargets: true, appendTitle : ` - ${this.effect.name}`});
2024-05-16 17:57:51 +02:00
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}))