foundryvtt-wh4-lang-fr-fr/scripts/s6eZXfZkC1My6EXl.js
2024-06-08 01:45:05 +02:00

5 lines
210 B
JavaScript

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