7 lines
326 B
JavaScript
7 lines
326 B
JavaScript
let test = await this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {appendTitle : ` - ${this.effect.name}`, fields : {difficulty : "difficult", slBonus : -1 * this.effet.sourceTest.result.SL}})
|
|
await Test.roll();
|
|
if (Test.succeeded)
|
|
{
|
|
this.script.notification(`Résistance à ${this.effect.name}`);
|
|
}
|
|
return test.failed; |