2024-05-17 01:07:37 +02:00
|
|
|
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}))
|