This commit is contained in:
2025-05-02 12:24:44 +02:00
commit 39e925cc1b
3238 changed files with 110472 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
let effects = foundry.utils.deepClone(this.item.effects.contents.filter(e => e.active));
effects.splice(effects.length - 1);
if (effects.length == 0)
{
return this.script.scriptNotification("All Effects have been used. Reset to select them again")
}
let choice = await ItemDialog.create(effects, 1, "Choose Power to Gain");
if (choice[0])
{
choice[0].update({disabled : true})
let effect = choice[0].convertToApplied();
effect.name += ` (${this.effect.name})`
this.actor.createEmbeddedDocuments("ActiveEffect", [effect]);
}