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

7 lines
289 B
JavaScript

let holed = this.actor.appliedEffects.filter(e => e.name.includes("Holed"));
for (let effect of holed) {
await effect.update({name: effect.name.replace(/\d+/, rating => parseInt(rating) * 2)});
}
this.script.scriptNotification(`Holed Ratings of ${this.actor.name} have been doubled.`);