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

5 lines
268 B
JavaScript
Raw Permalink Normal View History

2024-05-16 17:57:51 +02:00
let roll = await new Roll("1d10").roll();
roll.toMessage(this.script.getChatData());
args.totalWoundLoss = Math.max(0, args.totalWoundLoss - roll.total)
args.modifiers.other.push({label: this.effect.name, value : -1 * roll.total})
this.effect.update({disabled : true})