diff --git a/compendium/wfrp4e-core.talents.json b/compendium/wfrp4e-core.talents.json index 83708ec..f67b60f 100644 --- a/compendium/wfrp4e-core.talents.json +++ b/compendium/wfrp4e-core.talents.json @@ -1795,7 +1795,7 @@ "effectApplication": "actor", "effectTrigger": "opposedDefender", "preventDuplicateEffects": true, - "script": "if (args.opposedTest.result.winner == \"attacker\") {\n if (args.opposedTest.result.defenderTest.item && args.opposedTest.result.defenderTest.item.properties.qualities.find(q => q.includes(\"Shield\"))) {\n let shieldsman = this.actor.data.talents.find(t => t.name == this.effect.label)\n ui.notifications.notify(`${this.effect.label}: Gain de ${shieldsman.data.advances.value} avantages`)\n this.actor.modifyAdvantage(shieldsman.data.advances.value)\n }\n}" + "script": "if (args.opposedTest.result.winner == \"attacker\") {\n if (args.opposedTest.defenderTest.weapon && args.opposedTest.defenderTest.item.properties.qualities.shield){\n ui.notifications.notify(`Porte-Bouclier: Gain de ${this.item.Advances} Avantages`) this.actor.setAdvantage(this.item.Advances) \n } \n }" } }, "icon": "modules/wfrp4e-core/icons/talents/shieldsman.png", diff --git a/module.json b/module.json index 4bed971..890406f 100644 --- a/module.json +++ b/module.json @@ -5,7 +5,7 @@ "authors": [ {"name":"LeRatierBretonnien" }], "url": "https://gitlab.com/LeRatierBretonnien/foundryvtt-wh4-lang-fr-fr", "flags": {}, - "version": "5.2.4", + "version": "5.2.5", "minimumCoreVersion": "0.8.0", "compatibleCoreVersion": "9", "scripts": [],