Neuanfang mit französischem Modul

This commit is contained in:
2025-05-05 23:25:00 +02:00
parent cf24ef97df
commit 3f74b8dfdd
3135 changed files with 38383 additions and 93206 deletions
-17
View File
@@ -1,17 +0,0 @@
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]);
}