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

16 lines
442 B
JavaScript
Raw Normal View History

2024-05-16 17:57:51 +02:00
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}))