Fix WoM effects for robes and enchanted staff

This commit is contained in:
2024-06-08 00:27:35 +02:00
parent 4ebaad012b
commit b7bb897a46
8 changed files with 22 additions and 18 deletions

View File

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