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

5 lines
270 B
JavaScript
Raw Normal View History

if (args.opposedTest.result.hitloc.value == this.effect.flags.wfrp4e.location) // e.g. 'head', rLeg, 'lArm'
{
this.scriptMessage(`Gains a @Condition[Blinded] condition as their <strong>${this.item.name}</strong> was hit`);
this.actor.addCondition("blinded");
}