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

16 lines
442 B
JavaScript
Raw Permalink Normal View History

let test = await args.actor.setupSkill("Dodge", {skipTargets: true, appendTitle : ` - ${this.effect.name}`})
await test.roll();
let damage = parseInt(this.effect.sourceTest.result.SL)
if (test.succeded)
{
damage = damage + 8 - parseInt(test.result.SL)
}
else
{
damage = damage + 10
this.actor.addCondition("entangled", 3)
}
this.script.scriptMessage(await this.actor.applyBasicDamage(damage, {loc : "roll", suppressMsg: true}))