Files
foundryvtt-wh4-lang-fr-fr/scripts/eRVVn8YtU8nnOW2q.js

16 lines
478 B
JavaScript

await this.actor.addCondition("prone");
const test = await this.actor.setupSkill(game.i18n.localize("NAME.Dodge"), {
skipTargets: true,
appendTitle: ` - ${this.effect.name}`,
fields: {difficulty: "difficult"},
context: {
failure: `Encaisse 8 dégâts.`,
success: `Encaisse 4 dégâts.`
}
})
await test.roll();
const damage = test.failed ? 8 : 4;
await this.actor.applyBasicDamage(damage, {damageType: game.wfrp4e.config.DAMAGE_TYPE.IGNORE_AP, loc: "roll"});