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

9 lines
508 B
JavaScript

if (!this.item.equipped.value) {
return this.script.notification(`Vous devez équiper le ${this.item.name} pour récupérer des points de blessures.`,"info")
}
const runesOfRestoration = this.item.effects.contents.filter(e => e.name == this.effet.name)
const restorationWounds = parseInt(runesOfRestoration.length * this.actor.system.characteristics.t.bonus)
this.actor.modifyWounds(restorationWounds)
this.script.message(`Vous avez récupéré ${restorationWounds} blessures avec ${this.script.label}.`)