Files
foundryvtt-wh4-lang-fr-fr/scripts/8qOGotfGFA0HYQ6W.js

7 lines
252 B
JavaScript

let resistances = this.actor.itemTags.talent.filter(i => i.name == game.i18n.localize("NAME.MagicResistanceTalent"));
for(let talent of resistances)
{
talent.system.max.value = "custom";
talent.system.max.formula = "@characteristics.t.bonus + 2"
}