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

10 lines
570 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
let caster = this.effect.sourceActor;
if (caster)
{
let healed= caster.system.characteristics.wp.bonus + caster.system.characteristics.int.bonus
await this.actor.modifyWounds(healed);
this.script.scriptMessage(`<strong>${this.actor.prototypeToken.name}</strong> guéri ${healed} Blessures`)
2024-05-16 17:57:51 +02:00
}
let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {fields : {difficulty : "vhard"}, context : {success : "1 Point de Corruption gagné durant la dernière heure doit être supprimé.", failure: "Rien ne se passe"}})
2024-05-16 17:57:51 +02:00
await test.roll();