foundryvtt-wh4-lang-fr-fr/scripts/egDtqMxe3iekc6hv.js

6 lines
243 B
JavaScript
Raw Normal View History

2024-05-16 17:57:51 +02:00
let trait = args.opposedTest.attackerTest.item
let woundLossEffect = this.item.effects.get("7Amhi75wLv0PvGjd")
if (trait && trait.name.includes("Morsure") && woundLossEffect)
2024-05-16 17:57:51 +02:00
{
args.actor.applyEffect({effectUuids : woundLossEffect.uuid})
}