This commit is contained in:
2025-05-02 12:24:44 +02:00
commit 39e925cc1b
3238 changed files with 110472 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
let spells = await warhammer.utility.findAllItems("spell", "Chargement des sorts", true);
let choice = await ItemDialog.create(spells, 1);
if (choice[0])
{
this.script.scriptMessage(`Choisir @UUID[${choice[0].uuid}]{${choice[0].name}}`)
let spell = (await fromUuid(choice[0].uuid)).toObject(); // Might be an index so retrieve item object for sure
setProperty(spell, "flags.wfrp4e.boonOfTzeentch", true);
spell.system.wind.value = "Focalisation (Dhar)";
spell.system.memorized.value = true;
this.actor.createEmbeddedDocuments("Item", [spell], {fromEffect: this.effect.id})
}