let group
let item = await fromUuid("Compendium.wfrp4e-core.items.Item.5hH73j2NgPdsLCZN");
let data = item.toObject();

if (this.item.name.includes("("))
{
	group = this.item.parenthesesText
}

else
{
	group = await ValueDialog.create({text : "Entrez le Groupe de Haine", title : "Groupe de Haine"})

	this.item.updateSource({name : this.item.name + ` (${group})`, "system.tests.value" : this.item.system.tests.value.replace("Group", group)})
	this.effect.updateSource({name : this.effect.name + ` (${group})`})
}


data.name = data.name.replace("Cible", group);
await this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id});