2024-05-17 12:46:44 +02:00
|
|
|
let test = await this.actor.setupSkill("Esquive", {fields : {difficulty : "average"}})
|
2024-05-16 17:57:51 +02:00
|
|
|
let caster = this.effect.sourceActor
|
|
|
|
|
|
|
|
let fallen = this.effect.sourceTest.result.SL + caster.characteristics.wp.bonus
|
|
|
|
await test.roll();
|
|
|
|
if (test.failed)
|
|
|
|
{
|
|
|
|
this.actor.addCondition("prone")
|
2024-05-17 12:46:44 +02:00
|
|
|
this.script.scriptMessage(`<b>${this.actor.prototypeToken.name}</b> tombe de ${fallen} mètres`)
|
2024-05-16 17:57:51 +02:00
|
|
|
}
|