skripte in Ursprungsordner

This commit is contained in:
alzer
2025-05-10 00:11:46 +02:00
parent e5e43dda8a
commit 8015566cce
2979 changed files with 327 additions and 326 deletions
+10
View File
@@ -0,0 +1,10 @@
if (this.item.system.quantity.value)
{
this.item.system.reduceQuantity();
let actor = Array.from(game.user.targets)[0]?.actor || this.actor;
actor.applyEffect({effectUuids : this.item.effects.contents[0]?.uuid})
}
else
{
this.script.scriptNotification("None left!", "error")
}