Fix portebouclier

This commit is contained in:
sladecraven 2022-04-15 19:04:19 +02:00
parent 8a2ff0f2cd
commit d598e05166

View File

@ -1795,7 +1795,7 @@
"effectApplication": "actor",
"effectTrigger": "opposedDefender",
"preventDuplicateEffects": true,
"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 }"
"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`)\nthis.actor.setAdvantage(this.item.Advances) \n } \n }"
}
},
"icon": "modules/wfrp4e-core/icons/talents/shieldsman.png",