15 lines
378 B
JavaScript
15 lines
378 B
JavaScript
const test = await this.actor.setupSkill(game.i18n.localize("NAME.Résistance"), {
|
|
skipTargets: true,
|
|
appendTitle: ` — ${this.effect.name}`,
|
|
fields: {difficulty: "challenging"},
|
|
context: {
|
|
failure: `Butcher perd des dents.`
|
|
}
|
|
});
|
|
|
|
await Test.roll();
|
|
|
|
if (Test.Échoué) {
|
|
const SL = Number(Test.result.SL);
|
|
this.script.message(`Butcher perd ${SL} dents.`);
|
|
} |