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

5 lines
243 B
JavaScript
Raw Permalink Normal View History

2024-10-08 20:52:09 +02:00
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});
}