17 lines
645 B
JavaScript
17 lines
645 B
JavaScript
await this.actor.addCondition("prone");
|
|
const SL = this.effect.sourceTest.result.slOver;
|
|
const stunned = 1 + SL;
|
|
await this.actor.addCondition("stunned", stunned);
|
|
|
|
if (stunned > this.actor.system.characteristics.t.bonus) {
|
|
const crit = `<a data-action="clickTable" class="action-link critical" data-table="crithead" data-modifier="0"><i class="fas fa-list"></i> Critique</a>`;
|
|
|
|
const Test = await this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {
|
|
skipTargets: true,
|
|
appendTitle: ` - ${this.effet.name}`,
|
|
fields: {difficulty: "average"},
|
|
context: {failure: `Encaisse ${crit} à la tête.`}
|
|
})
|
|
|
|
await test.roll();
|
|
} |