Files
foundryvtt-wh4-lang-fr-fr/scripts/yHAPfyaRfC4ijV6x.js
T
uberwald 38d88c2f19
Validation JSON / validate (push) Successful in 13s
Mise àjour vers 9.6.0
2026-05-18 07:23:40 +02:00

7 lines
385 B
JavaScript

let locs = Object.values(this.actor.system.status.armour).map(i => i.label).filter(i => i);
let location = locs[Math.floor(CONFIG.Dice.randomUniform() * (locs.length))];
let duration = await new Roll("1d10").roll();
duration.toMessage(this.script.getChatData());
this.effect.updateSource({name: this.effect.setSpecifier(location), duration: {value: duration.total, units: "hours"}});