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

6 lines
290 B
JavaScript
Raw Permalink Normal View History

let item = args.opposedTest.attackerTest.item;
if (!item.isMagical && (item.type == "weapon" || item.type == "trait"))
{
args.modifiers.other.push({label : this.effect.name, details : "Remove Damage Rating", value : -1 * (args.totalWoundLoss - args.opposedTest.result.differenceSL)})
}