foundryvtt-wh4-lang-fr-fr/scripts/tolkNN5P7oOC8GKZ.js

11 lines
488 B
JavaScript

let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields : {difficulty : "difficult"}})
await test.roll();
if (test.failed)
{
let sourceActor = this.effect.sourceActor;
if (sourceActor)
{
this.script.scriptMessage(await this.actor.applyBasicDamage(sourceActor.system.characteristics.wp.bonus, {suppressMsg : true, damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_ALL}))
}
}