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

9 lines
266 B
JavaScript

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