forked from public/foundryvtt-wh4-lang-fr-fr
Resistance fixé
This commit is contained in:
@ -6603,7 +6603,7 @@
|
||||
"effectApplication": "apply",
|
||||
"effectTrigger": "oneTime",
|
||||
"preventDuplicateEffects": false,
|
||||
"script": "fromUuid(this.effect.origin).then(caster => {\n if (caster)\n {\n let healed= caster.data.data.characteristics.wp.bonus + caster.data.data.characteristics.int.bonus\n let wounds = duplicate(args.actor.data.data.status.wounds)\n wounds.value+=healed\n \n if (wounds.value > wounds.max)\n wounds.value = wounds.max\n \n args.actor.update({\"data.status.wounds\" : wounds})\n ChatMessage.create({content: `${this.actor.data.token.name} regains ${healed} Wounds`, speaker : {alias : this.effect.label}})\n }\n})\n\nthis.actor.setupSkill(\"Endurance\", {absolute : {difficulty : \"vhard\"}, context : {success : \"1 Corruption point that was gained within the last hour is removed.\", failure: \"Nothing happens\"}}).then(setupData => {\n this.actor.basicTest(setupData)\n})"
|
||||
"script": "fromUuid(this.effect.origin).then(caster => {\n if (caster)\n {\n let healed= caster.data.data.characteristics.wp.bonus + caster.data.data.characteristics.int.bonus\n let wounds = duplicate(args.actor.data.data.status.wounds)\n wounds.value+=healed\n \n if (wounds.value > wounds.max)\n wounds.value = wounds.max\n \n args.actor.update({\"data.status.wounds\" : wounds})\n ChatMessage.create({content: `${this.actor.data.token.name} regains ${healed} Wounds`, speaker : {alias : this.effect.label}})\n }\n})\n\nthis.actor.setupSkill(\"Résistance\", {absolute : {difficulty : \"vhard\"}, context : {success : \"1 Corruption point that was gained within the last hour is removed.\", failure: \"Nothing happens\"}}).then(setupData => {\n this.actor.basicTest(setupData)\n})"
|
||||
}
|
||||
},
|
||||
"icon": "modules/wfrp4e-core/icons/spells/healing-light.png",
|
||||
@ -9303,7 +9303,7 @@
|
||||
"effectApplication": "apply",
|
||||
"effectTrigger": "oneTime",
|
||||
"lore": true,
|
||||
"script": "\n if (args.actor.owner)\n args.actor.setupSkill(\"Endurance\", {context : {failure: \"1 Corruption Point Gained\", success : \"1 Fortune Point Gained\"}}).then(setupData => {\n args.actor.basicTest(setupData).then(test => \n {\n if (test.result.result == \"success\" && args.actor.data.type == \"character\")\n {\n args.actor.update({\"data.status.fortune.value\" : args.actor.data.data.status.fortune.value + 1})\n }\n else if (test.result.result == \"failure\" && args.actor.data.type == \"character\")\n {\n args.actor.update({\"data.status.corruption.value\" : args.actor.data.data.status.corruption.value + 1})\n }\n })\n })"
|
||||
"script": "\n if (args.actor.owner)\n args.actor.setupSkill(\"Résistance\", {context : {failure: \"1 Corruption Point Gained\", success : \"1 Fortune Point Gained\"}}).then(setupData => {\n args.actor.basicTest(setupData).then(test => \n {\n if (test.result.result == \"success\" && args.actor.data.type == \"character\")\n {\n args.actor.update({\"data.status.fortune.value\" : args.actor.data.data.status.fortune.value + 1})\n }\n else if (test.result.result == \"failure\" && args.actor.data.type == \"character\")\n {\n args.actor.update({\"data.status.corruption.value\" : args.actor.data.data.status.corruption.value + 1})\n }\n })\n })"
|
||||
}
|
||||
},
|
||||
"icon": "modules/wfrp4e-core/icons/spells/tzeentch.png",
|
||||
|
Reference in New Issue
Block a user