Fix spells

This commit is contained in:
sladecraven 2022-02-27 14:24:48 +01:00
parent e2b43130cd
commit 05b9ea87c2
2 changed files with 14 additions and 14 deletions

View File

@ -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",

View File

@ -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": [],