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

3 lines
290 B
JavaScript

let lore = this.effect.name.split("(")[1].split(")")[0].toLowerCase();
let spellLore = game.wfrp4e.config.magicLores[args.spell.system.lore.value].toLowerCase();
return !args.spell || (args.type == "cast" && [game.wfrp4e.config.magicLores["petty"].toLowerCase(), lore].includes(spellLore));