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,8 +1,9 @@
let lore = this.effect.name.split("(")[1].split(")")[0].toLowerCase();
let spellLore = game.wfrp4e.config.magicLores[args.spell.system.lore.value].toLowerCase();
// If channelling corresponding lore
if (args.type == "channelling" && args.spell.system.lore.value == lore)
if (args.type == "channelling" && spellLore == lore)
args.prefillModifiers.slBonus += 3
// If channelling or casting different lore
else if (args.spell.system.lore.value != lore && args.spell.system.lore.value != "petty")
args.prefillModifiers.slBonus -= 1
else if (spellLore != lore && args.spell.system.lore.value != "petty")
args.prefillModifiers.slBonus -= 1