2024-05-16 17:57:51 +02:00
|
|
|
let damage = 0
|
2024-05-17 12:46:44 +02:00
|
|
|
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}))
|