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

10 lines
322 B
JavaScript

let target = await game.wfrp4e.tables.rollTable("fixations")
if (target)
{
this.script.scriptNotification(target.result);
let hatred = this.actor.items.find(i => i.getFlag("wfrp4e", "fromEffect") == this.effect.id)
if (hatred)
{
hatred.update({"system.specification.value" : target.result})
}
}