foundryvtt-wh4-lang-fr-fr/reference_scripts/6Ws3ieQ7pG5poUyT.js

8 lines
295 B
JavaScript
Raw Permalink Normal View History

2024-06-06 21:09:27 +02:00
if (isNaN(parseInt(this.item.system.specification.value)))
{
let value = await ValueDialog.create("Enter Spellcasting Lore", this.effect.name, "", Object.values(game.wfrp4e.config.magicLores));
if (value)
{
this.item.updateSource({"system.specification.value" : value});
}
}