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

10 lines
322 B
JavaScript
Raw Permalink Normal View History

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})
}
}