2024-05-16 17:57:51 +02:00
|
|
|
let lore = this.effect.name.split("(")[1].split(")")[0].toLowerCase();
|
2024-06-08 00:27:35 +02:00
|
|
|
let spellLore = game.wfrp4e.config.magicLores[args.spell.system.lore.value].toLowerCase();
|
2024-06-08 01:45:05 +02:00
|
|
|
return !args.spell || (args.type == "cast" && [game.wfrp4e.config.magicLores["petty"].toLowerCase(), lore].includes(spellLore));
|