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

5 lines
169 B
JavaScript
Raw Normal View History

2024-06-06 22:07:28 +02:00
let rating = parseInt(this.effect.name.match(/\d+/)?.[0]) || 1;
let holed = this.actor.flags.holed || {holed: 0};
holed.holed += rating;
this.actor.flags.holed = holed;