From 05b9ea87c259922a2e08bc55a52f9d8344e181fb Mon Sep 17 00:00:00 2001 From: sladecraven Date: Sun, 27 Feb 2022 14:24:48 +0100 Subject: [PATCH] Fix spells --- compendium/wfrp4e-core.spells.json | 26 +++++++++++++------------- module.json | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/compendium/wfrp4e-core.spells.json b/compendium/wfrp4e-core.spells.json index a411425..37ccb54 100644 --- a/compendium/wfrp4e-core.spells.json +++ b/compendium/wfrp4e-core.spells.json @@ -1008,7 +1008,7 @@ "effectApplication": "apply", "effectTrigger": "oneTime", "preventDuplicateEffects": false, - "script": "fromUuid(this.effect.origin).then(caster=> {\n if (caster&& (args.actor.has(game.i18n.localize(\"NAME.Undead\")) || args.actor.has(game.i18n.localize(\"NAME.Daemonic\"))))\n {\n let wp = caster.characteristics.wp.value\n if (wp > args.actor.characteristics.t.value)\n {\n if (args.actor.has(game.i18n.localize(\"NAME.Unstable\")))\n {\n args.actor.update({\"data.status.wounds.value\" : 0})\n args.actor.addCondition(\"dead\")\n }\n else\n {\n fromUuid(\"Compendium.wfrp4e-core.traits.D0ImWEIMSDgElsnl\").then(item => {\n args.actor.createEmbeddedEntity(\"OwnedItem\", item)\n ChatMessage.create({content : `Added Unstable to ${args.actor.data.token.name}`, speaker : {alias: caster.name}})\n })\n }\n }\n }\n })" + "script": "fromUuid(this.effect.origin).then(caster=> {\n if (caster&& (args.actor.has(game.i18n.localize(\"NAME.Undead\")) || args.actor.has(game.i18n.localize(\"NAME.Daemonic\"))))\n {\n let wp = caster.characteristics.wp.value\n if (wp > args.actor.characteristics.t.value)\n {\n if (args.actor.has(game.i18n.localize(\"NAME.Unstable\")))\n {\n args.actor.update({\"data.status.wounds.value\" : 0})\n args.actor.addCondition(\"dead\")\n }\n else\n {\n fromUuid(\"Compendium.wfrp4e-core.traits.D0ImWEIMSDgElsnl\").then(item => {\n args.actor.createEmbeddedDocuments(\"Item\", [item])\n ChatMessage.create({content : `Added Unstable to ${args.actor.data.token.name}`, speaker : {alias: caster.name}})\n })\n }\n }\n }\n })" } }, "icon": "modules/wfrp4e-core/icons/spells/banishment.png", @@ -5883,7 +5883,7 @@ "effectApplication": "apply", "effectTrigger": "oneTime", "preventDuplicateEffects": false, - "script": "fromUuid(\"Compendium.wfrp4e-core.traits.EO05HX7jql0g605A\").then(item => {\n item.specification.value = this.actor.characteristics.ag.value\n this.actor.createEmbeddedEntity(\"OwnedItem\", item)\n})" + "script": "fromUuid(\"Compendium.wfrp4e-core.traits.EO05HX7jql0g605A\").then(item => {\n item.data.specification.value = this.actor.characteristics.ag.value\n this.actor.createEmbeddedDocuments(\"Item\", [item])\n})" } }, "icon": "modules/wfrp4e-core/icons/blank.png", @@ -5915,7 +5915,7 @@ "effectApplication": "apply", "effectTrigger": "oneTime", "preventDuplicateEffects": false, - "script": "fromUuid(\"Compendium.wfrp4e-core.traits.EO05HX7jql0g605A\").then(item => {\n item.specification.value = this.actor.characteristics.ag.value\n this.actor.createEmbeddedEntity(\"OwnedItem\", item)\n})" + "script": "fromUuid(\"Compendium.wfrp4e-core.traits.EO05HX7jql0g605A\").then(item => {\n item.data.specification.value = this.actor.characteristics.ag.value\n this.actor.createEmbeddedDocuments(\"Item\", [item])\n})" } }, "icon": "modules/wfrp4e-core/icons/spells/beasts.png", @@ -5963,7 +5963,7 @@ "effectApplication": "apply", "effectTrigger": "oneTime", "preventDuplicateEffects": false, - "script": "fromUuid(\"Compendium.wfrp4e-core.traits.EO05HX7jql0g605A\").then(item => {\n item.specification.value = this.actor.characteristics.ag.value\n this.actor.createEmbeddedEntity(\"OwnedItem\", item)\n})" + "script": "fromUuid(\"Compendium.wfrp4e-core.traits.EO05HX7jql0g605A\").then(item => {\n item.data.specification.value = this.actor.characteristics.ag.value\n this.actor.createEmbeddedDocuments(\"Item\", [item])\n})" } }, "icon": "modules/wfrp4e-core/icons/spells/daemonology.png", @@ -5995,7 +5995,7 @@ "effectApplication": "apply", "effectTrigger": "oneTime", "preventDuplicateEffects": false, - "script": "fromUuid(\"Compendium.wfrp4e-core.traits.EO05HX7jql0g605A\").then(item => {\n item.specification.value = this.actor.characteristics.ag.value\n this.actor.createEmbeddedEntity(\"OwnedItem\", item)\n})" + "script": "fromUuid(\"Compendium.wfrp4e-core.traits.EO05HX7jql0g605A\").then(item => {\n item.data.specification.value = this.actor.characteristics.ag.value\n this.actor.createEmbeddedDocuments(\"Item\", [item])\n})" } }, "icon": "modules/wfrp4e-core/icons/spells/death.png", @@ -6043,7 +6043,7 @@ "effectApplication": "apply", "effectTrigger": "oneTime", "preventDuplicateEffects": false, - "script": "fromUuid(\"Compendium.wfrp4e-core.traits.EO05HX7jql0g605A\").then(item => {\n item.specification.value = this.actor.characteristics.ag.value\n this.actor.createEmbeddedEntity(\"OwnedItem\", item)\n})" + "script": "fromUuid(\"Compendium.wfrp4e-core.traits.EO05HX7jql0g605A\").then(item => {\n item.data.specification.value = this.actor.characteristics.ag.value\n this.actor.createEmbeddedDocuments(\"Item\", [item])\n})" } }, "icon": "modules/wfrp4e-core/icons/spells/fire.png", @@ -6091,7 +6091,7 @@ "effectApplication": "apply", "effectTrigger": "oneTime", "preventDuplicateEffects": false, - "script": "fromUuid(\"Compendium.wfrp4e-core.traits.EO05HX7jql0g605A\").then(item => {\n item.specification.value = this.actor.characteristics.ag.value\n this.actor.createEmbeddedEntity(\"OwnedItem\", item)\n})" + "script": "fromUuid(\"Compendium.wfrp4e-core.traits.EO05HX7jql0g605A\").then(item => {\n item.data.specification.value = this.actor.characteristics.ag.value\n this.actor.createEmbeddedDocuments(\"Item\", [item])\n})" } }, "icon": "modules/wfrp4e-core/icons/spells/heavens.png", @@ -6139,7 +6139,7 @@ "effectApplication": "apply", "effectTrigger": "oneTime", "preventDuplicateEffects": false, - "script": "fromUuid(\"Compendium.wfrp4e-core.traits.EO05HX7jql0g605A\").then(item => {\n item.specification.value = this.actor.characteristics.ag.value\n this.actor.createEmbeddedEntity(\"OwnedItem\", item)\n})" + "script": "fromUuid(\"Compendium.wfrp4e-core.traits.EO05HX7jql0g605A\").then(item => {\n item.data.specification.value = this.actor.characteristics.ag.value\n this.actor.createEmbeddedDocuments(\"Item\", [item])\n})" } }, "icon": "modules/wfrp4e-core/icons/spells/life.png", @@ -6187,7 +6187,7 @@ "effectApplication": "apply", "effectTrigger": "oneTime", "preventDuplicateEffects": false, - "script": "fromUuid(\"Compendium.wfrp4e-core.traits.EO05HX7jql0g605A\").then(item => {\n item.specification.value = this.actor.characteristics.ag.value\n this.actor.createEmbeddedEntity(\"OwnedItem\", item)\n})" + "script": "fromUuid(\"Compendium.wfrp4e-core.traits.EO05HX7jql0g605A\").then(item => {\n item.data.specification.value = this.actor.characteristics.ag.value\n this.actor.createEmbeddedDocuments(\"Item\", [item])\n})" } }, "icon": "modules/wfrp4e-core/icons/spells/light.png", @@ -6235,7 +6235,7 @@ "effectApplication": "apply", "effectTrigger": "oneTime", "preventDuplicateEffects": false, - "script": "fromUuid(\"Compendium.wfrp4e-core.traits.EO05HX7jql0g605A\").then(item => {\n item.specification.value = this.actor.characteristics.ag.value\n this.actor.createEmbeddedEntity(\"OwnedItem\", item)\n})" + "script": "fromUuid(\"Compendium.wfrp4e-core.traits.EO05HX7jql0g605A\").then(item => {\n item.data.specification.value = this.actor.characteristics.ag.value\n this.actor.createEmbeddedDocuments(\"Item\", [item])\n})" } }, "icon": "modules/wfrp4e-core/icons/spells/metal.png", @@ -6283,7 +6283,7 @@ "effectApplication": "apply", "effectTrigger": "oneTime", "preventDuplicateEffects": false, - "script": "fromUuid(\"Compendium.wfrp4e-core.traits.EO05HX7jql0g605A\").then(item => {\n item.specification.value = this.actor.characteristics.ag.value\n this.actor.createEmbeddedEntity(\"OwnedItem\", item)\n})" + "script": "fromUuid(\"Compendium.wfrp4e-core.traits.EO05HX7jql0g605A\").then(item => {\n item.data.specification.value = this.actor.characteristics.ag.value\n this.actor.createEmbeddedDocuments(\"Item\", [item])\n})" } }, "icon": "modules/wfrp4e-core/icons/spells/necromancy.png", @@ -6315,7 +6315,7 @@ "effectApplication": "apply", "effectTrigger": "oneTime", "preventDuplicateEffects": false, - "script": "fromUuid(\"Compendium.wfrp4e-core.traits.EO05HX7jql0g605A\").then(item => {\n item.specification.value = this.actor.characteristics.ag.value\n this.actor.createEmbeddedEntity(\"OwnedItem\", item)\n})" + "script": "fromUuid(\"Compendium.wfrp4e-core.traits.EO05HX7jql0g605A\").then(item => {\n item.data.specification.value = this.actor.characteristics.ag.value\n this.actor.createEmbeddedDocuments(\"Item\", [item])\n})" } }, "icon": "modules/wfrp4e-core/icons/spells/shadow.png", @@ -7796,7 +7796,7 @@ "effectApplication": "apply", "effectTrigger": "oneTime", "preventDuplicateEffects": false, - "script": "fromUuid(\"Compendium.wfrp4e-core.traits.pTorrE0l3VybAbtn\").then(item => {\nitem.specification.value = {{result.overcast.other.current}}\nthis.actor.createEmbeddedEntity(\"OwnedItem\", item)\n})" + "script": "fromUuid(\"Compendium.wfrp4e-core.traits.pTorrE0l3VybAbtn\").then(item => {\nitem.specification.value = {{result.overcast.other.current}}\nthis.actor.createEmbeddedDocuments(\"Item\", [item])\n})" } }, "icon": "modules/wfrp4e-core/icons/spells/purple-pall-of-shyish.png", diff --git a/module.json b/module.json index 1bbb799..819ce2e 100644 --- a/module.json +++ b/module.json @@ -6,7 +6,7 @@ "authors": [], "url": "https://gitlab.com/LeRatierBretonnien/foundryvtt-wh4-lang-fr-fr", "flags": {}, - "version": "5.1.4", + "version": "5.1.5", "minimumCoreVersion": "0.8.0", "compatibleCoreVersion": "9", "scripts": [],