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

5 lines
243 B
JavaScript

if (args.opposedTest?.attackerTest?.weapon?.name.toLowerCase().includes("unarmed")) {
const sl = this.effect.getFlag("wfrp4e-archives3", "sl");
args.totalWoundLoss += sl;
args.modifiers.other.push({label: this.effect.name, value: sl});
}