Fix porte-bouclier

This commit is contained in:
sladecraven 2022-04-13 21:08:14 +02:00
parent 41b09b956b
commit 8a2ff0f2cd
2 changed files with 2 additions and 2 deletions

View File

@ -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(`<b>${this.effect.label}</b>: 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(`<b>Porte-Bouclier</b>: Gain de ${this.item.Advances} Avantages`) this.actor.setAdvantage(this.item.Advances) \n } \n }"
}
},
"icon": "modules/wfrp4e-core/icons/talents/shieldsman.png",

View File

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