forked from public/foundryvtt-wh4-lang-fr-fr
Fix porte-bouclier
This commit is contained in:
@ -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",
|
||||
|
Reference in New Issue
Block a user