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

16 lines
444 B
JavaScript
Raw Permalink Normal View History

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