2024-05-16 17:57:51 +02:00
|
|
|
let test = await args.actor.setupSkill(game.i18n.localize("NAME.Cool"), {skipTargets: true, appendTitle : " - " + this.effect.name})
|
|
|
|
await test.roll();
|
|
|
|
|
|
|
|
if (test.succeeded)
|
|
|
|
{
|
|
|
|
if (args.totalWoundLoss <= parseInt(test.result.SL))
|
|
|
|
{
|
2024-05-17 01:07:37 +02:00
|
|
|
args.abort = `<strong>${this.effect.name}</strong>: Attaque détournée et renvoyée`
|
2024-05-16 17:57:51 +02:00
|
|
|
}
|
|
|
|
args.modifiers.other.push({label : this.effect.name, value : -1 * parseInt(test.result.SL)})
|
|
|
|
}
|