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

6 lines
240 B
JavaScript

let trait = args.opposedTest.attackerTest.item
let woundLossEffect = this.item.effects.get("7Amhi75wLv0PvGjd")
if (trait && trait.name.includes("Bite") && woundLossEffect)
{
args.actor.applyEffect({effectUuids : woundLossEffect.uuid})
}