foundryvtt-wh4-lang-fr-fr/reference_scripts/s6eZXfZkC1My6EXl.js

6 lines
166 B
JavaScript

let lore = this.effect.name.split(" ")[2].toLowerCase();
if (args.item.type == "spell" && args.item.system.lore.value == lore)
{
args.item.system.cn.value -= 1
}