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

9 lines
271 B
JavaScript
Raw Permalink Normal View History

let regenerate = this.actor.items.getName('Régénération')
2024-05-16 17:57:51 +02:00
if (regenerate)
{
let effect = regenerate.effects.contents[0]
let scriptData = effect.getFlag("wfrp4e", "scriptData");
scriptData[0].script = scriptData[0].script.replace("1d10", "1d10 * 2")
}