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

11 lines
488 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
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}))
}
}