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

6 lines
240 B
JavaScript
Raw Normal View History

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})
}