Sync to v7.2.0
This commit is contained in:
18
scripts/QfTBRGXVfwQSghmd.js
Normal file
18
scripts/QfTBRGXVfwQSghmd.js
Normal file
@ -0,0 +1,18 @@
|
||||
fromUuid(this.effect.origin).then(caster => {
|
||||
if (caster) {
|
||||
if (actor.items.find(it => it.name == game.i18n.localize("Bestial"))) {
|
||||
let healed = caster.characteristics.wp.bonus
|
||||
let wounds = duplicate(args.actor.status.wounds)
|
||||
wounds.value += healed
|
||||
|
||||
if (wounds.value > wounds.max)
|
||||
wounds.value = wounds.max
|
||||
|
||||
args.actor.update({ "system.status.wounds": wounds })
|
||||
ChatMessage.create({ content: `${this.actor.prototypeToken.name} regagne ${healed} Blessures`, speaker: { alias: this.effect.name } })
|
||||
} else {
|
||||
ui.notifications.warn("L'Acteur ciblé n'a pas le Trait Bestial")
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user