foundryvtt-wh4-lang-fr-fr/scripts/6QZUX7ZrFxOzqI0b.js

9 lines
271 B
JavaScript

let regenerate = this.actor.items.getName('Régénération')
if (regenerate)
{
let effect = regenerate.effects.contents[0]
let scriptData = effect.getFlag("wfrp4e", "scriptData");
scriptData[0].script = scriptData[0].script.replace("1d10", "1d10 * 2")
}